summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/kroute.c
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2018-02-08 21:37:37 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2018-02-08 21:37:37 +0000
commit8b198f260b527d316e64e6ff3cb77a0064c5eead (patch)
treee52e1ca2d53bd413358d14d27dabc2d918e790a6 /usr.sbin/ospf6d/kroute.c
parent8144ed9b5932e5e620c0a19811063dc9bb512853 (diff)
ospf6d mostly only cares about AF_INET6 routes
found while investigating routing socket desync with claudio. ok remi jca claudio
Diffstat (limited to 'usr.sbin/ospf6d/kroute.c')
-rw-r--r--usr.sbin/ospf6d/kroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/kroute.c b/usr.sbin/ospf6d/kroute.c
index 58e4f72f287..42818186e5e 100644
--- a/usr.sbin/ospf6d/kroute.c
+++ b/usr.sbin/ospf6d/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.53 2017/11/05 14:33:27 jca Exp $ */
+/* $OpenBSD: kroute.c,v 1.54 2018/02/08 21:37:36 benno Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -102,7 +102,7 @@ kr_init(int fs)
kr_state.fib_sync = fs;
if ((kr_state.fd = socket(AF_ROUTE,
- SOCK_RAW | SOCK_CLOEXEC | SOCK_NONBLOCK, 0)) == -1) {
+ SOCK_RAW | SOCK_CLOEXEC | SOCK_NONBLOCK, AF_INET6)) == -1) {
log_warn("kr_init: socket");
return (-1);
}