summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-03-16 18:22:28 +0000
committerwollman <wollman@FreeBSD.org>1995-03-16 18:22:28 +0000
commita428f47a5d3b328c0a7a5c36b95a868d52b294ca (patch)
tree3bef168166cf5f300003506d23de67610cd0bd93 /sys/netinet/in.h
parent289f11acb49b6dbb3081e09bf94a86f008f55814 (diff)
downloadFreeBSD-src-a428f47a5d3b328c0a7a5c36b95a868d52b294ca.zip
FreeBSD-src-a428f47a5d3b328c0a7a5c36b95a868d52b294ca.tar.gz
Reject source routes unless configured on by administrator.
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 5c83a2e..b9f8b1d 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -229,7 +229,8 @@ struct ip_mreq {
#define IPCTL_RTEXPIRE 5 /* cloned route expiration time */
#define IPCTL_RTMINEXPIRE 6 /* min value for expiration time */
#define IPCTL_RTMAXCACHE 7 /* trigger level for dynamic expire */
-#define IPCTL_MAXID 8
+#define IPCTL_SOURCEROUTE 8 /* may perform source routes */
+#define IPCTL_MAXID 9
#define IPCTL_NAMES { \
{ 0, 0 }, \
@@ -240,6 +241,7 @@ struct ip_mreq {
{ "rtexpire", CTLTYPE_INT }, \
{ "rtminexpire", CTLTYPE_INT }, \
{ "rtmaxcache", CTLTYPE_INT }, \
+ { "sourceroute", CTLTYPE_INT }, \
}
OpenPOWER on IntegriCloud