summaryrefslogtreecommitdiffstats
path: root/sys/sys/mbuf.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-09-15 20:13:26 +0000
committerandre <andre@FreeBSD.org>2004-09-15 20:13:26 +0000
commit5b67b5c1f38fdb1ca745e61e704050eb2767e3be (patch)
tree8aac23c439beefe50c1b1751c071c1ddee07eb91 /sys/sys/mbuf.h
parent375f58b8c16491ec099f2f95a521bc7aebdb0279 (diff)
downloadFreeBSD-src-5b67b5c1f38fdb1ca745e61e704050eb2767e3be.zip
FreeBSD-src-5b67b5c1f38fdb1ca745e61e704050eb2767e3be.tar.gz
Remove the last two global variables that are used to store packet state while
it travels through the IP stack. This wasn't much of a problem because IP source routing is disabled by default but when enabled together with SMP and preemption it would have very likely cross-corrupted the IP options in transit. The IP source route options of a packet are now stored in a mtag instead of the global variable.
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r--sys/sys/mbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h
index ff799bc..0c65b8e 100644
--- a/sys/sys/mbuf.h
+++ b/sys/sys/mbuf.h
@@ -642,6 +642,7 @@ struct mbuf *m_uiotombuf(struct uio *, int, int);
#define PACKET_TAG_PF_TAG 24 /* PF tagged */
#define PACKET_TAG_RTSOCKFAM 25 /* rtsock sa family */
#define PACKET_TAG_PF_TRANSLATE_LOCALHOST 26 /* PF translate localhost */
+#define PACKET_TAG_IPOPTIONS 27 /* Saved IP options */
/* Packet tag routines. */
struct m_tag *m_tag_alloc(u_int32_t, int, int, int);
OpenPOWER on IntegriCloud