summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2009-06-04 19:07:22 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2009-06-04 19:07:22 +0000
commit1041db1394aeef25c3a5a21180b36441f477c69a (patch)
tree0c5d5a2a574e12211bcf1561030bb841ac068dc0 /sys/net/if.h
parent649412d634e24b58b17a4a685c72317b709a7114 (diff)
allow IPvShit to be turned off completely per-interface.
ifconfig em0 -inet6 deletes all v6 addresses including link-local and prevents new ones from being added. ifconfig em0 inet6 <addr> re-enables v6, brings the link local back and adds optional <addr> ok theo reyk
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index c033499060b..94885445c40 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.104 2009/06/03 20:35:37 beck Exp $ */
+/* $OpenBSD: if.h,v 1.105 2009/06/04 19:07:21 henning Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -281,6 +281,10 @@ struct ifnet { /* and the entries */
IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI)
#define IFXF_TXREADY 0x1 /* interface is ready to tx */
+#define IFXF_NOINET6 0x2 /* don't do inet6 */
+
+#define IFXF_CANTCHANGE \
+ (IFXF_TXREADY)
/*
* Some convenience macros used for setting ifi_baudrate.