From 2a9e17ce8e0e9ac0c0e105a3495b919a9182694b Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sun, 28 Oct 2007 17:55:57 +0000 Subject: 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 --- sys/security/mac_mls/mac_mls.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'sys/security/mac_mls') diff --git a/sys/security/mac_mls/mac_mls.c b/sys/security/mac_mls/mac_mls.c index 701eb6d5e309..8ead38155cbd 100644 --- a/sys/security/mac_mls/mac_mls.c +++ b/sys/security/mac_mls/mac_mls.c @@ -1213,19 +1213,6 @@ mls_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel, mls_copy_effective(source, dest); } -static void -mls_mbuf_create_multicast_encap(struct mbuf *m, struct label *mlabel, - struct ifnet *ifp, struct label *ifplabel, struct mbuf *mnew, - struct label *mnewlabel) -{ - struct mac_mls *source, *dest; - - source = SLOT(mlabel); - dest = SLOT(mnewlabel); - - mls_copy_effective(source, dest); -} - static int mls_ipq_match(struct mbuf *m, struct label *mlabel, struct ipq *ipq, struct label *ipqlabel) @@ -2994,7 +2981,6 @@ static struct mac_policy_ops mls_ops = .mpo_inpcb_create_mbuf = mls_inpcb_create_mbuf, .mpo_bpfdesc_create_mbuf = mls_bpfdesc_create_mbuf, .mpo_ifnet_create_mbuf = mls_ifnet_create_mbuf, - .mpo_mbuf_create_multicast_encap = mls_mbuf_create_multicast_encap, .mpo_ipq_match = mls_ipq_match, .mpo_ifnet_relabel = mls_ifnet_relabel, .mpo_ipq_update = mls_ipq_update, -- cgit v1.2.3