summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d/kroute.c
diff options
context:
space:
mode:
authordenis <denis@openbsd.org>2020-05-17 18:29:25 +0000
committerdenis <denis@openbsd.org>2020-05-17 18:29:25 +0000
commitc0f838c0a50db47f374011a9de56ebf8f842c5ed (patch)
tree24936b05459857c795bddab6b0b9ebf37120650f /usr.sbin/ospf6d/kroute.c
parentFree handshake message correctly, noticed by tb@ (diff)
downloadwireguard-openbsd-c0f838c0a50db47f374011a9de56ebf8f842c5ed.tar.xz
wireguard-openbsd-c0f838c0a50db47f374011a9de56ebf8f842c5ed.zip
IF_IFACE_AVAIL is never used/checked, wipe it.
OK remi@
Diffstat (limited to 'usr.sbin/ospf6d/kroute.c')
-rw-r--r--usr.sbin/ospf6d/kroute.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/ospf6d/kroute.c b/usr.sbin/ospf6d/kroute.c
index 4d2588ea643..3fb5440a6e2 100644
--- a/usr.sbin/ospf6d/kroute.c
+++ b/usr.sbin/ospf6d/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.63 2020/05/16 15:54:12 denis Exp $ */
+/* $OpenBSD: kroute.c,v 1.64 2020/05/17 18:29:25 denis Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -761,7 +761,6 @@ kif_update(u_short ifindex, int flags, struct if_data *ifd,
return (NULL);
if ((iface = if_new(ifindex, ifname)) == NULL)
return (NULL);
- iface->cflags |= F_IFACE_AVAIL;
}
if_update(iface, ifd->ifi_mtu, flags, ifd->ifi_type,
@@ -1019,7 +1018,6 @@ if_announce(void *msg)
case IFAN_ARRIVAL:
if ((iface = if_new(ifan->ifan_index, ifan->ifan_name)) == NULL)
fatal("if_announce failed");
- iface->cflags |= F_IFACE_AVAIL;
break;
case IFAN_DEPARTURE:
iface = if_find(ifan->ifan_index);