diff options
author | 2010-07-09 15:38:28 +0000 | |
---|---|---|
committer | 2010-07-09 15:38:28 +0000 | |
commit | 67e30897e12e3be352bf092b0665b2a0c75beb2f (patch) | |
tree | 80103e07d82b24743d7df47e58ff659ca1e785ba | |
parent | When protocol filtering is used on the rtsocket filter only messages that (diff) | |
download | wireguard-openbsd-67e30897e12e3be352bf092b0665b2a0c75beb2f.tar.xz wireguard-openbsd-67e30897e12e3be352bf092b0665b2a0c75beb2f.zip |
ospfd is a AF_INET only routing daemon so limit the routing socket to that
af. This is possible since this filtering no longer blocks RTM_IFINFO.
OK henning@
-rw-r--r-- | usr.sbin/ospfd/kroute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/kroute.c b/usr.sbin/ospfd/kroute.c index 63889f1d8ce..28abc58fbe3 100644 --- a/usr.sbin/ospfd/kroute.c +++ b/usr.sbin/ospfd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.84 2010/06/27 05:15:20 dlg Exp $ */ +/* $OpenBSD: kroute.c,v 1.85 2010/07/09 15:38:28 claudio Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -134,7 +134,7 @@ kr_init(int fs, u_int rdomain) kr_state.fib_sync = fs; kr_state.rdomain = rdomain; - if ((kr_state.fd = socket(AF_ROUTE, SOCK_RAW, 0)) == -1) { + if ((kr_state.fd = socket(AF_ROUTE, SOCK_RAW, AF_INET)) == -1) { log_warn("kr_init: socket"); return (-1); } |