diff options
author | rwatson <rwatson@FreeBSD.org> | 2007-10-26 13:18:38 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2007-10-26 13:18:38 +0000 |
commit | a3b8fc4866545652607bccb0d3d248e512463e35 (patch) | |
tree | 5126fbd4b18174fda8e90bc084911557af9f87ae /sys/security/mac_test/mac_test.c | |
parent | 6edabeb2b453e55413bf787226f2563ce3c4a5da (diff) | |
download | FreeBSD-src-a3b8fc4866545652607bccb0d3d248e512463e35.zip FreeBSD-src-a3b8fc4866545652607bccb0d3d248e512463e35.tar.gz |
Rename 'mac_mbuf_create_from_firewall' to 'mac_netinet_firewall_send' as
we move towards netinet as a pseudo-object for the MAC Framework.
Rename 'mac_create_mbuf_linklayer' to 'mac_mbuf_create_linklayer' to
reflect general object-first ordering preference.
Sponsored by: SPARTA (original patches against Mac OS X)
Obtained from: TrustedBSD Project, Apple Computer
Diffstat (limited to 'sys/security/mac_test/mac_test.c')
-rw-r--r-- | sys/security/mac_test/mac_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c index 5369ff6..04a6571 100644 --- a/sys/security/mac_test/mac_test.c +++ b/sys/security/mac_test/mac_test.c @@ -955,15 +955,15 @@ test_inpcb_create_mbuf(struct inpcb *inp, struct label *inplabel, COUNTER_INC(inpcb_create_mbuf); } -COUNTER_DECL(create_mbuf_linklayer); +COUNTER_DECL(mbuf_create_linklayer); static void -test_create_mbuf_linklayer(struct ifnet *ifp, struct label *ifplabel, +test_mbuf_create_linklayer(struct ifnet *ifp, struct label *ifplabel, struct mbuf *mbuf, struct label *mbuflabel) { LABEL_CHECK(ifplabel, MAGIC_IFNET); LABEL_CHECK(mbuflabel, MAGIC_MBUF); - COUNTER_INC(create_mbuf_linklayer); + COUNTER_INC(mbuf_create_linklayer); } COUNTER_DECL(bpfdesc_create_mbuf); @@ -2561,7 +2561,7 @@ static struct mac_policy_ops test_ops = .mpo_netinet_fragment = test_netinet_fragment, .mpo_ipq_create = test_ipq_create, .mpo_inpcb_create_mbuf = test_inpcb_create_mbuf, - .mpo_create_mbuf_linklayer = test_create_mbuf_linklayer, + .mpo_mbuf_create_linklayer = test_mbuf_create_linklayer, .mpo_bpfdesc_create_mbuf = test_bpfdesc_create_mbuf, .mpo_ifnet_create_mbuf = test_ifnet_create_mbuf, .mpo_mbuf_create_multicast_encap = test_mbuf_create_multicast_encap, |