From 5e71112509f619704ade66a8c8429cb90bfff811 Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 5 Jul 2005 23:39:51 +0000 Subject: Eliminate MAC entry point mac_create_mbuf_from_mbuf(), which is redundant with respect to existing mbuf copy label routines. Expose a new mac_copy_mbuf() routine at the top end of the Framework and use that; use the existing mpo_copy_mbuf_label() routine on the bottom end. Obtained from: TrustedBSD Project Sponsored by: SPARTA, SPAWAR Approved by: re (scottl) --- sys/netinet/ip_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet') diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index ce3a217..0241479 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1071,7 +1071,7 @@ ip_insertoptions(m, opt, phlen) M_MOVE_PKTHDR(n, m); n->m_pkthdr.rcvif = NULL; #ifdef MAC - mac_create_mbuf_from_mbuf(m, n); + mac_copy_mbuf(m, n); #endif n->m_pkthdr.len += optlen; m->m_len -= sizeof(struct ip); -- cgit v1.1