From: benno Date: Thu, 8 Feb 2018 21:37:36 +0000 (+0000) Subject: ospf6d mostly only cares about AF_INET6 routes X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1b9a1fc74dbce0b9d6bd1421ed62d00186af9b15;p=openbsd ospf6d mostly only cares about AF_INET6 routes found while investigating routing socket desync with claudio. ok remi jca claudio --- 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 @@ -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); }