diff options
author | 1997-08-09 23:36:25 +0000 | |
---|---|---|
committer | 1997-08-09 23:36:25 +0000 | |
commit | 4a304dbaae73ec8f00e51fba676c2b12295e3b5d (patch) | |
tree | f2594d420eb94b1719da25df0aa9b6d9045835c1 /sys/netinet/tcp_usrreq.c | |
parent | Fix some minor stuff and flesh out a bit. (diff) | |
download | wireguard-openbsd-4a304dbaae73ec8f00e51fba676c2b12295e3b5d.tar.xz wireguard-openbsd-4a304dbaae73ec8f00e51fba676c2b12295e3b5d.zip |
The list of tcp/udp ports not to allocate dynamically is now
a bitmask configurable via sysctl([38]). The default values
have not changed. If one wants to change the list it should
be done early on in /etc/rc.
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index c9741a1c230..99c02ed1fa1 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.11 1997/07/24 00:25:25 deraadt Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.12 1997/08/09 23:36:26 millert Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -75,6 +75,9 @@ extern char *tcpstates[]; extern int tcptv_keep_init; +/* from in_pcb.c */ +extern struct baddynamicports baddynamicports; + /* * Process a TCP user request for TCP tb. If this is a send request * then m is the mbuf chain of send data. If this is a timer expiration @@ -588,6 +591,10 @@ tcp_sysctl(name, namelen, oldp, oldlenp, newp, newlen) case TCPCTL_SLOWHZ: return (sysctl_rdint(oldp, oldlenp, newp, PR_SLOWHZ)); + case TCPCTL_BADDYNAMIC: + return (sysctl_struct(oldp, oldlenp, newp, newlen, + baddynamicports.tcp, sizeof(baddynamicports.tcp))); + default: return (ENOPROTOOPT); } |