summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/in6.h
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2017-09-01 16:48:27 +0000
committerflorian <florian@openbsd.org>2017-09-01 16:48:27 +0000
commitc77dc22edbbda77bf954c110c2bdb219eb223b5b (patch)
treedfd66923223de74ceeca71837abb6b2769d17b4c /sys/netinet6/in6.h
parentAdd macros for reading the bmAttributes field of the USB super speed (diff)
downloadwireguard-openbsd-c77dc22edbbda77bf954c110c2bdb219eb223b5b.tar.xz
wireguard-openbsd-c77dc22edbbda77bf954c110c2bdb219eb223b5b.zip
Use in6_get_rand_ifid() instead of get_last_resort_ifid() and delete the
get_last_resort_ifid() function because eww. Also if your system is so constraint that you end up in in6_get_rand_ifid() you don't deserve a random ifid that stays stable over reboots. Simplify code a bit since get_ifid() can no longer fail. It couldn't fail before either because that code path was #if 0'ed. While here sprinkle in some in6_ prefixes, pointed out by stsp. OK stsp
Diffstat (limited to 'sys/netinet6/in6.h')
-rw-r--r--sys/netinet6/in6.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index 0caae1f586a..397f1094a5b 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.h,v 1.98 2017/08/11 19:53:02 bluhm Exp $ */
+/* $OpenBSD: in6.h,v 1.99 2017/09/01 16:48:27 florian Exp $ */
/* $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $ */
/*
@@ -418,7 +418,6 @@ void in6_proto_cksum_out(struct mbuf *, struct ifnet *);
int in6_localaddr(struct in6_addr *);
int in6_addrscope(struct in6_addr *);
struct in6_ifaddr *in6_ifawithscope(struct ifnet *, struct in6_addr *, u_int);
-void in6_get_rand_ifid(struct ifnet *, struct in6_addr *);
int in6_mask2len(struct in6_addr *, u_char *);
int in6_nam2sin6(const struct mbuf *, struct sockaddr_in6 **);