diff options
author | dfr <dfr@FreeBSD.org> | 2004-06-13 19:55:16 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2004-06-13 19:55:16 +0000 |
commit | 79e1f4d67800647bdfe8570ff50d3961ebe162a3 (patch) | |
tree | 15b25a99fa9c0271ead328186b728e7ec3537641 /sys/net | |
parent | fc65dfcc08ddf1513ada7132e0f3f50e0ef391ce (diff) | |
download | FreeBSD-src-79e1f4d67800647bdfe8570ff50d3961ebe162a3.zip FreeBSD-src-79e1f4d67800647bdfe8570ff50d3961ebe162a3.tar.gz |
Add MAC framework bits to the output path.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_fwsubr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/if_fwsubr.c b/sys/net/if_fwsubr.c index 7c3392a..42f26e6 100644 --- a/sys/net/if_fwsubr.c +++ b/sys/net/if_fwsubr.c @@ -90,6 +90,12 @@ firewire_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst, GIANT_REQUIRED; +#ifdef MAC + error = mac_check_ifnet_transmit(ifp, m); + if (error) + goto bad; +#endif + if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) { error = ENETDOWN; goto bad; |