summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-12-18 15:34:17 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-12-18 15:34:17 +0000
commitfe6fb873dccf3eecf656f9af82031d05fe36ae57 (patch)
treebc8fcb8006dd01e53b5bf7470ecf518944ba67a7
parent5c564bae0a7655b1a517f322ad410a743e98e8d2 (diff)
Notes
-rw-r--r--sys/net/if_loop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index b4fc8b5505df..9c3affca973c 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -42,10 +42,12 @@
#include "opt_inet.h"
#include "opt_inet6.h"
#include "opt_ipx.h"
+#include "opt_mac.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
+#include <sys/mac.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/module.h>
@@ -225,6 +227,14 @@ looutput(ifp, m, dst, rt)
n->m_pkthdr = m->m_pkthdr;
n->m_len = m->m_pkthdr.len;
SLIST_INIT(&m->m_pkthdr.tags);
+#ifdef MAC
+ /*
+ * XXXMAC: Once we put labels in tags and proper
+ * primitives are used for relocating mbuf header
+ * data, this will no longer be required.
+ */
+ m->m_pkthdr.label.l_flags &= ~MAC_FLAG_INITIALIZED;
+#endif
m_freem(m);
m = n;
}