summaryrefslogtreecommitdiffstats
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
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@
-rw-r--r--usr.sbin/ospf6d/kroute.c4
-rw-r--r--usr.sbin/ospf6d/ospf6d.h3
2 files changed, 2 insertions, 5 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);
diff --git a/usr.sbin/ospf6d/ospf6d.h b/usr.sbin/ospf6d/ospf6d.h
index 7561d65f27f..ee00c55efa2 100644
--- a/usr.sbin/ospf6d/ospf6d.h
+++ b/usr.sbin/ospf6d/ospf6d.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf6d.h,v 1.48 2020/05/16 15:54:12 denis Exp $ */
+/* $OpenBSD: ospf6d.h,v 1.49 2020/05/17 18:29:25 denis Exp $ */
/*
* Copyright (c) 2004, 2007 Esben Norby <norby@openbsd.org>
@@ -330,7 +330,6 @@ struct iface {
u_int8_t cflags;
#define F_IFACE_PASSIVE 0x01
#define F_IFACE_CONFIGURED 0x02
-#define F_IFACE_AVAIL 0x04
};
struct ifaddrchange {