From 33417874f42d859e6925c0cad02eb4a0ade247ca Mon Sep 17 00:00:00 2001 From: weongyo Date: Tue, 7 Dec 2010 20:23:47 +0000 Subject: 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 --- sys/net/if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net/if.h') 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 */ -- cgit v1.1 From 6dc48cb05c2ff1b9db74aafddb1a26eb6ce7633c Mon Sep 17 00:00:00 2001 From: weongyo Date: Tue, 7 Dec 2010 20:31:04 +0000 Subject: Adds IFF_CANTCONFIG to IFF_CANTCHANGE that it shouldn't happen through ioctl(2). --- sys/net/if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net/if.h') diff --git a/sys/net/if.h b/sys/net/if.h index 8cfa448..d291da8 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -165,7 +165,7 @@ struct if_data { #define IFF_CANTCHANGE \ (IFF_BROADCAST|IFF_POINTOPOINT|IFF_DRV_RUNNING|IFF_DRV_OACTIVE|\ IFF_SIMPLEX|IFF_MULTICAST|IFF_ALLMULTI|IFF_SMART|IFF_PROMISC|\ - IFF_DYING) + IFF_DYING|IFF_CANTCONFIG) /* * Values for if_link_state. -- cgit v1.1