summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorvgross <vgross@openbsd.org>2016-06-18 10:36:13 +0000
committervgross <vgross@openbsd.org>2016-06-18 10:36:13 +0000
commit05a599d3fd72a3593ac753624dfa633d9f297ca3 (patch)
tree42650519fd9a205e441b8a79ce019358eefaa75f /sys/netinet/tcp_var.h
parentStop setting the 4-bit mode capability flag for now. (diff)
downloadwireguard-openbsd-05a599d3fd72a3593ac753624dfa633d9f297ca3.tar.xz
wireguard-openbsd-05a599d3fd72a3593ac753624dfa633d9f297ca3.zip
Add net.inet.{tcp,udp}.rootonly sysctl, to mark which ports
cannot be bound to by non-root users. Ok millert@ bluhm@
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index b99ba8a5cde..e057c084437 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_var.h,v 1.112 2016/03/29 18:13:20 bluhm Exp $ */
+/* $OpenBSD: tcp_var.h,v 1.113 2016/06/18 10:36:13 vgross Exp $ */
/* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */
/*
@@ -490,7 +490,8 @@ struct tcpstat {
#define TCPCTL_STATS 21 /* TCP statistics */
#define TCPCTL_ALWAYS_KEEPALIVE 22 /* assume SO_KEEPALIVE is always set */
#define TCPCTL_SYN_USE_LIMIT 23 /* number of uses before reseeding hash */
-#define TCPCTL_MAXID 24
+#define TCPCTL_ROOTONLY 24 /* return root only port bitmap */
+#define TCPCTL_MAXID 25
#define TCPCTL_NAMES { \
{ 0, 0 }, \
@@ -517,6 +518,7 @@ struct tcpstat {
{ "stats", CTLTYPE_STRUCT }, \
{ "always_keepalive", CTLTYPE_INT }, \
{ "synuselimit", CTLTYPE_INT }, \
+ { "rootonly", CTLTYPE_STRUCT }, \
}
#define TCPCTL_VARS { \
@@ -543,6 +545,7 @@ struct tcpstat {
NULL, \
NULL, \
NULL, \
+ NULL, \
NULL \
}