summaryrefslogtreecommitdiff
path: root/usr.sbin/sysctl/sysctl.8
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-08-19 06:42:43 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-08-19 06:42:43 +0000
commitbbe7862a45561c86d620710558f90d43b3032d7c (patch)
treea48ffbdbdafdf72fa0dc9e022ed9cfef2a368d62 /usr.sbin/sysctl/sysctl.8
parent1bc21344d855aff510a4a72985b243a48bd300c2 (diff)
Add support for adding/subtracting ports from the current baddynamic
mask.
Diffstat (limited to 'usr.sbin/sysctl/sysctl.8')
-rw-r--r--usr.sbin/sysctl/sysctl.813
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.sbin/sysctl/sysctl.8 b/usr.sbin/sysctl/sysctl.8
index 90ee178d107..2024ae4aaa3 100644
--- a/usr.sbin/sysctl/sysctl.8
+++ b/usr.sbin/sysctl/sysctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.8,v 1.11 1997/08/09 23:36:30 millert Exp $
+.\" $OpenBSD: sysctl.8,v 1.12 1997/08/19 06:42:42 millert Exp $
.\" $NetBSD: sysctl.8,v 1.4 1995/09/30 07:12:49 thorpej Exp $
.\"
.\" Copyright (c) 1993
@@ -227,9 +227,16 @@ sysctl vm.loadavg
.Pp
Set the list of reserved TCP ports that should not be allocated
by the kernel dynamically. This can be used to keep daemons
-from stealing a specific port that another program needs to function:
+from stealing a specific port that another program needs to function.
+List elements may be separated by commas and/or whitespace.
.Bd -literal -offset indent -compact
-sysctl -w net.inet.tcp.baddynamic="749 750 751 760 761 871"
+sysctl -w net.inet.tcp.baddynamic=749,750,751,760,761,871
+.Ed
+.Pp
+It is also possible to add or remove ports from the current list.
+.Bd -literal -offset indent -compact
+sysctl -w net.inet.tcp.baddynamic=+748
+sysctl -w net.inet.tcp.baddynamic=-871
.Ed
.Sh FILES
.Bl -tag -width <netinet/icmpXvar.h> -compact