summaryrefslogtreecommitdiffstats
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-12-29 13:35:18 +0000
committerjhb <jhb@FreeBSD.org>2009-12-29 13:35:18 +0000
commit3ce93dcb7c6607b76d019f9acff610d5389f2b5a (patch)
treefffe65b8e28fab3d296215d907de7cf2e4433879 /sys/net/if.h
parentaa28c3213861962a9da4732d118054f285c25df9 (diff)
downloadFreeBSD-src-3ce93dcb7c6607b76d019f9acff610d5389f2b5a.zip
FreeBSD-src-3ce93dcb7c6607b76d019f9acff610d5389f2b5a.tar.gz
Change vlan interfaces to cope more usefully with the parent interface being
renamed. Previously the vlan interfaces would lose their configuration as if the parent interface had been physically removed. Now vlan interfaces ignore rename events. - Add a new ifnet flag (IFF_RENAMING) that is set while an ifnet is being renamed. This flag can be checked in ifnet departure/arrival event handlers to treat rename events differently. - Change the ifnet departure event handler in the if_vlan(4) driver to ignore departure events due to a trunk interface being renamed. Reviewed by: brooks, rwatson MFC after: 1 week
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 857ab7f..f94b54a 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -150,6 +150,7 @@ struct if_data {
#define IFF_MONITOR 0x40000 /* (n) user-requested monitor mode */
#define IFF_STATICARP 0x80000 /* (n) static ARP */
#define IFF_DYING 0x200000 /* (n) interface is winding down */
+#define IFF_RENAMING 0x400000 /* (n) interface is being renamed */
/*
* Old names for driver flags so that user space tools can continue to use
OpenPOWER on IntegriCloud