From 1b9a1fc74dbce0b9d6bd1421ed62d00186af9b15 Mon Sep 17 00:00:00 2001 From: benno Date: Thu, 8 Feb 2018 21:37:36 +0000 Subject: [PATCH] ospf6d mostly only cares about AF_INET6 routes found while investigating routing socket desync with claudio. ok remi jca claudio --- usr.sbin/ospf6d/kroute.c | 4 ++-- 1 file 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 @@ -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); } -- 2.20.1