summaryrefslogtreecommitdiffstats
path: root/sys/security/mac_test
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-10-28 17:55:57 +0000
committerrwatson <rwatson@FreeBSD.org>2007-10-28 17:55:57 +0000
commit54102acdd33a82e9e30587840fa37add70eb6a1c (patch)
treeea9e4b5af6e13229c36a6b366ba45e4eb67ff102 /sys/security/mac_test
parent369fd04f480478bfb9d2cb1566ec0189185a020e (diff)
downloadFreeBSD-src-54102acdd33a82e9e30587840fa37add70eb6a1c.zip
FreeBSD-src-54102acdd33a82e9e30587840fa37add70eb6a1c.tar.gz
Garbage collect mac_mbuf_create_multicast_encap TrustedBSD MAC Framework
entry point, which is no longer required now that we don't support old-style multicast tunnels. This removes the last mbuf object class entry point that isn't init/copy/destroy. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/security/mac_test')
-rw-r--r--sys/security/mac_test/mac_test.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/security/mac_test/mac_test.c b/sys/security/mac_test/mac_test.c
index b0d4ea8..39dc842 100644
--- a/sys/security/mac_test/mac_test.c
+++ b/sys/security/mac_test/mac_test.c
@@ -1037,19 +1037,6 @@ test_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel,
COUNTER_INC(ifnet_create_mbuf);
}
-COUNTER_DECL(mbuf_create_multicast_encap);
-static void
-test_mbuf_create_multicast_encap(struct mbuf *oldmbuf,
- struct label *oldmbuflabel, struct ifnet *ifp, struct label *ifplabel,
- struct mbuf *newmbuf, struct label *newmbuflabel)
-{
-
- LABEL_CHECK(oldmbuflabel, MAGIC_MBUF);
- LABEL_CHECK(ifplabel, MAGIC_IFNET);
- LABEL_CHECK(newmbuflabel, MAGIC_MBUF);
- COUNTER_INC(mbuf_create_multicast_encap);
-}
-
COUNTER_DECL(ipq_match);
static int
test_ipq_match(struct mbuf *fragment, struct label *fragmentlabel,
@@ -2720,7 +2707,6 @@ static struct mac_policy_ops test_ops =
.mpo_inpcb_create_mbuf = test_inpcb_create_mbuf,
.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,
.mpo_ipq_match = test_ipq_match,
.mpo_netatalk_aarp_send = test_netatalk_aarp_send,
.mpo_netinet_arp_send = test_netinet_arp_send,
OpenPOWER on IntegriCloud