summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorweongyo <weongyo@FreeBSD.org>2010-12-07 20:23:47 +0000
committerweongyo <weongyo@FreeBSD.org>2010-12-07 20:23:47 +0000
commit33417874f42d859e6925c0cad02eb4a0ade247ca (patch)
treeabc83b3dd508360290ecafb7540045dce0f68bf7 /sys/net/if.h
parentffba45505b9102f1fc072ac9f76dfd17e2a0324c (diff)
downloadFreeBSD-src-33417874f42d859e6925c0cad02eb4a0ade247ca.zip
FreeBSD-src-33417874f42d859e6925c0cad02eb4a0ade247ca.tar.gz
Introduces IFF_CANTCONFIG interface flag to point that the interface
isn't configurable in a meaningful way. This is for ifconfig(8) or other tools not to change code whenever IFT_USB-like interfaces are registered at the interface list. Reviewed by: brooks No objections: gavin, jkim
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index a99b4a7..8cfa448 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -145,7 +145,7 @@ struct if_data {
#define IFF_LINK2 0x4000 /* per link layer defined bit */
#define IFF_ALTPHYS IFF_LINK2 /* use alternate physical connection */
#define IFF_MULTICAST 0x8000 /* (i) supports multicast */
-/* 0x10000 */
+#define IFF_CANTCONFIG 0x10000 /* (i) unconfigurable using ioctl(2) */
#define IFF_PPROMISC 0x20000 /* (n) user-requested promisc mode */
#define IFF_MONITOR 0x40000 /* (n) user-requested monitor mode */
#define IFF_STATICARP 0x80000 /* (n) static ARP */
OpenPOWER on IntegriCloud