diff options
author | Vincent Gross <vgross@cvs.openbsd.org> | 2016-06-18 10:36:14 +0000 |
---|---|---|
committer | Vincent Gross <vgross@cvs.openbsd.org> | 2016-06-18 10:36:14 +0000 |
commit | a2a69e4ebbc39b9b06527f05a765ce43782dbc45 (patch) | |
tree | 7b8fd3554d8f4b9187d0a126a349ab6c5e67c4cc /sys/netinet/udp_var.h | |
parent | 3cf9a9daf049acc0fdc14eef9e6541f6cdeea457 (diff) |
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/udp_var.h')
-rw-r--r-- | sys/netinet/udp_var.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h index cfbf5152230..0473df1bc28 100644 --- a/sys/netinet/udp_var.h +++ b/sys/netinet/udp_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_var.h,v 1.26 2014/04/23 12:25:35 mpi Exp $ */ +/* $OpenBSD: udp_var.h,v 1.27 2016/06/18 10:36:13 vgross Exp $ */ /* $NetBSD: udp_var.h,v 1.12 1996/02/13 23:44:41 christos Exp $ */ /* @@ -78,7 +78,8 @@ struct udpstat { #define UDPCTL_RECVSPACE 3 /* receive buffer space */ #define UDPCTL_SENDSPACE 4 /* send buffer space */ #define UDPCTL_STATS 5 /* UDP statistics */ -#define UDPCTL_MAXID 6 +#define UDPCTL_ROOTONLY 6 /* root only port bitmap */ +#define UDPCTL_MAXID 7 #define UDPCTL_NAMES { \ { 0, 0 }, \ @@ -86,7 +87,8 @@ struct udpstat { { "baddynamic", CTLTYPE_STRUCT }, \ { "recvspace", CTLTYPE_INT }, \ { "sendspace", CTLTYPE_INT }, \ - { "stats", CTLTYPE_STRUCT } \ + { "stats", CTLTYPE_STRUCT }, \ + { "rootonly", CTLTYPE_STRUCT }, \ } #define UDPCTL_VARS { \ @@ -95,6 +97,7 @@ struct udpstat { NULL, \ &udp_recvspace, \ &udp_sendspace, \ + NULL, \ NULL \ } |