diff options
author | remi <remi@openbsd.org> | 2018-07-12 13:45:03 +0000 |
---|---|---|
committer | remi <remi@openbsd.org> | 2018-07-12 13:45:03 +0000 |
commit | 5d393f89df4eea79e7642c10962031cfb716a811 (patch) | |
tree | 30b6dff64934a86127c8ef29b6b2d1c14a375e5c /usr.sbin/ospf6ctl/ospf6ctl.c | |
parent | Remove cases for 1-bit and 4-bit color depths in efifb_ioctl(), as we (diff) | |
download | wireguard-openbsd-5d393f89df4eea79e7642c10962031cfb716a811.tar.xz wireguard-openbsd-5d393f89df4eea79e7642c10962031cfb716a811.zip |
Add support for rdomains.
small quirk from tb@
ok phessler@
Diffstat (limited to 'usr.sbin/ospf6ctl/ospf6ctl.c')
-rw-r--r-- | usr.sbin/ospf6ctl/ospf6ctl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ospf6ctl/ospf6ctl.c b/usr.sbin/ospf6ctl/ospf6ctl.c index 7410a7c9179..ec2b5c3c2c6 100644 --- a/usr.sbin/ospf6ctl/ospf6ctl.c +++ b/usr.sbin/ospf6ctl/ospf6ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospf6ctl.c,v 1.48 2018/06/06 05:51:43 remi Exp $ */ +/* $OpenBSD: ospf6ctl.c,v 1.49 2018/07/12 13:45:03 remi Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -90,13 +90,16 @@ main(int argc, char *argv[]) struct parse_result *res; struct imsg imsg; unsigned int ifidx = 0; - int ctl_sock; + int ctl_sock, r; int done = 0, verbose = 0; int n; int ch; char *sockname; - sockname = OSPF6D_SOCKET; + r = getrtable(); + if (asprintf(&sockname, "%s.%d", OSPF6D_SOCKET, r) == -1) + err(1, "asprintf"); + while ((ch = getopt(argc, argv, "s:")) != -1) { switch (ch) { case 's': |