diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-01-22 09:25:30 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-01-22 09:25:30 +0000 |
commit | f510e60a932c248b782e0217055433775b7f1bbf (patch) | |
tree | 3c0a341e1946064b8468bb29d0dfa9f0b63e6a05 /usr.sbin/ifstated | |
parent | b13e6a05b26f1b7259902e126de9350a99cd6fc8 (diff) |
PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() calls
where the "wrong" #define was used.
ok dlg@
Diffstat (limited to 'usr.sbin/ifstated')
-rw-r--r-- | usr.sbin/ifstated/ifstated.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ifstated/ifstated.c b/usr.sbin/ifstated/ifstated.c index 32cf2f857cc..c35984c479f 100644 --- a/usr.sbin/ifstated/ifstated.c +++ b/usr.sbin/ifstated/ifstated.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ifstated.c,v 1.62 2018/10/31 07:39:13 mestre Exp $ */ +/* $OpenBSD: ifstated.c,v 1.63 2019/01/22 09:25:29 krw Exp $ */ /* * Copyright (c) 2004 Marco Pfatschbacher <mpf@openbsd.org> @@ -148,16 +148,16 @@ main(int argc, char *argv[]) log_init(debug, LOG_DAEMON); log_setverbose(opts & IFSD_OPT_VERBOSE); - if ((rt_fd = socket(PF_ROUTE, SOCK_RAW, 0)) < 0) + if ((rt_fd = socket(AF_ROUTE, SOCK_RAW, 0)) < 0) fatal("no routing socket"); rtfilter = ROUTE_FILTER(RTM_IFINFO) | ROUTE_FILTER(RTM_IFANNOUNCE); - if (setsockopt(rt_fd, PF_ROUTE, ROUTE_MSGFILTER, + if (setsockopt(rt_fd, AF_ROUTE, ROUTE_MSGFILTER, &rtfilter, sizeof(rtfilter)) == -1) /* not fatal */ log_warn("%s: setsockopt msgfilter", __func__); rtfilter = RTABLE_ANY; - if (setsockopt(rt_fd, PF_ROUTE, ROUTE_TABLEFILTER, + if (setsockopt(rt_fd, AF_ROUTE, ROUTE_TABLEFILTER, &rtfilter, sizeof(rtfilter)) == -1) /* not fatal */ log_warn("%s: setsockopt tablefilter", __func__); |