summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2004-10-19 20:59:01 +0000
committerandre <andre@FreeBSD.org>2004-10-19 20:59:01 +0000
commit11ab41ab2fcf910d0a343664eb523a47314b88c3 (patch)
treed659e232470eacda539123ff04cc312be5845f1d /sys
parent06094f1554155583b763a331546ebe748abcadb9 (diff)
downloadFreeBSD-src-11ab41ab2fcf910d0a343664eb523a47314b88c3.zip
FreeBSD-src-11ab41ab2fcf910d0a343664eb523a47314b88c3.tar.gz
Pre-emptively define IPPROTO_SPACER to 32767, the same value as PROTO_SPACER
to document that this value is globally assigned for a special purpose and may not be reused within the IPPROTO number space.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/in.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 4e4f5b1..9f85a33 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -244,6 +244,12 @@ __END_DECLS
#define IPPROTO_DIVERT 258 /* divert pseudo-protocol */
/*
+ * Defined to avoid confusion. The master value is defined by
+ * PROTO_SPACER in sys/protosw.h.
+ */
+#define IPPROTO_SPACER 32767 /* spacer for loadable protos */
+
+/*
* Local port number conventions:
*
* When a user does a bind(2) or connect(2) with a port number of zero,
OpenPOWER on IntegriCloud