diff options
author | phk <phk@FreeBSD.org> | 1996-08-23 18:59:07 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-08-23 18:59:07 +0000 |
commit | b8aebaca2624179f7a6d556675d3c246c8aca35c (patch) | |
tree | d473198a8bcce68dadb106e123088be159894864 /sys/netinet/in_pcb.c | |
parent | 983e14a6bcb3cb9b4197b2dc8fcb1358101a1606 (diff) | |
download | FreeBSD-src-b8aebaca2624179f7a6d556675d3c246c8aca35c.zip FreeBSD-src-b8aebaca2624179f7a6d556675d3c246c8aca35c.tar.gz |
Mark sockets where the kernel chose the port# for.
This can be used by netstat to behave more intelligently.
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index fddbfaa..c414ce2 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in_pcb.c 8.4 (Berkeley) 5/24/95 - * $Id: in_pcb.c,v 1.19 1996/05/31 05:11:22 peter Exp $ + * $Id: in_pcb.c,v 1.20 1996/08/12 14:05:54 peter Exp $ */ #include <sys/param.h> @@ -202,6 +202,8 @@ in_pcbbind(inp, nam) ushort first, last; int count; + inp->inp_flags |= INP_ANONPORT; + if (inp->inp_flags & INP_HIGHPORT) { first = ipport_hifirstauto; /* sysctl */ last = ipport_hilastauto; |