Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

comment on dom_ifattach[] call timing

  • Loading branch information...
commit 182b0e6a2307ca711485bf5f82d65b321590b380 1 parent 5b4e276
itojun authored
View
4 freebsd4/sys/net/if.c
@@ -245,6 +245,10 @@ if_attach(ifp)
ifp->if_snd.altq_ifp = ifp;
#endif
+ /*
+ * dom_ifattach[] will be called here. functions must not expect
+ * that other initialization is done (such as ether_ifattach).
+ */
if (domains)
if_attachdomain1(ifp);
View
4 freebsd5/sys/net/if.c
@@ -448,6 +448,10 @@ if_attach(struct ifnet *ifp)
ifp->if_snd.altq_ifp = ifp;
#endif
+ /*
+ * dom_ifattach[] will be called here. functions must not expect
+ * that other initialization is done (such as ether_ifattach).
+ */
if (domains)
if_attachdomain1(ifp);
View
4 netbsd/sys/net/if.c
@@ -461,6 +461,10 @@ if_attach(ifp)
ifp->if_xname);
#endif
+ /*
+ * dom_ifattach[] will be called here. functions must not expect
+ * that other initialization is done (such as ether_ifattach).
+ */
if (domains)
if_attachdomain1(ifp);
View
4 openbsd/sys/net/if.c
@@ -247,6 +247,10 @@ if_attachsetup(ifp)
ifp->if_snd.altq_ifp = ifp;
#endif
+ /*
+ * dom_ifattach[] will be called here. functions must not expect
+ * that other initialization is done (such as ether_ifattach).
+ */
if (domains)
if_attachdomain1(ifp);
#if NPF > 0
Please sign in to comment.
Something went wrong with that request. Please try again.