aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2007-10-24 19:04:04 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-10-24 19:04:04 +0000
commit30d239bc4c510432e65a84fa1c14ed67a3ab1c92 (patch)
treefea282db79628eed98808fd38cc46445b2f97ca5 /sys/net/if.c
parent21439626472b5a6d5317cc38b361bc2368f97d93 (diff)
downloadsrc-30d239bc4c510432e65a84fa1c14ed67a3ab1c92.tar.gz
src-30d239bc4c510432e65a84fa1c14ed67a3ab1c92.zip
Notes
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 0b602bcff67e..a6db03d4bcfc 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -478,8 +478,8 @@ if_attach(struct ifnet *ifp)
ifp->if_data.ifi_datalen = sizeof(struct if_data);
#ifdef MAC
- mac_init_ifnet(ifp);
- mac_create_ifnet(ifp);
+ mac_ifnet_init(ifp);
+ mac_ifnet_create(ifp);
#endif
ifdev_byindex(ifp->if_index) = make_dev(&net_cdevsw,
@@ -758,7 +758,7 @@ if_detach(struct ifnet *ifp)
IF_AFDATA_UNLOCK(ifp);
#ifdef MAC
- mac_destroy_ifnet(ifp);
+ mac_ifnet_destroy(ifp);
#endif /* MAC */
KNOTE_UNLOCKED(&ifp->if_klist, NOTE_EXIT);
knlist_clear(&ifp->if_klist, 0);
@@ -1534,7 +1534,7 @@ ifhwioctl(u_long cmd, struct ifnet *ifp, caddr_t data, struct thread *td)
#ifdef MAC
case SIOCGIFMAC:
- error = mac_ioctl_ifnet_get(td->td_ucred, ifr, ifp);
+ error = mac_ifnet_ioctl_get(td->td_ucred, ifr, ifp);
break;
#endif
@@ -1610,7 +1610,7 @@ ifhwioctl(u_long cmd, struct ifnet *ifp, caddr_t data, struct thread *td)
#ifdef MAC
case SIOCSIFMAC:
- error = mac_ioctl_ifnet_set(td->td_ucred, ifr, ifp);
+ error = mac_ifnet_ioctl_set(td->td_ucred, ifr, ifp);
break;
#endif