Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 11/15/2005 18:39:47
Module Name:	src
Committed By:	dsl
Date:		Tue Nov 15 18:39:46 UTC 2005

Modified Files:
	src/sys/netinet: in_pcb.c in_pcb.h tcp_input.c tcp_usrreq.c
	    udp_usrreq.c
	src/sys/netinet6: in6_pcb.c in6_pcb.h udp6_usrreq.c

Log Message:
Pass the current process structure to in_pcbconnect() so that it can
pass it to in_pcbbind() so that can allocate a low numbered port
if setsockopt() has been used to set IP_PORTRANGE to IP_PORTRANGE_LOW.
While there, fail in_pcbconnect() if the in_pcbbind() fails - rather
than sending the request out from a port of zero.
This has been largely broken since the socket option was added in 1998.


To generate a diff of this commit:
cvs rdiff -r1.100 -r1.101 src/sys/netinet/in_pcb.c
cvs rdiff -r1.39 -r1.40 src/sys/netinet/in_pcb.h
cvs rdiff -r1.236 -r1.237 src/sys/netinet/tcp_input.c
cvs rdiff -r1.111 -r1.112 src/sys/netinet/tcp_usrreq.c
cvs rdiff -r1.142 -r1.143 src/sys/netinet/udp_usrreq.c
cvs rdiff -r1.67 -r1.68 src/sys/netinet6/in6_pcb.c
cvs rdiff -r1.26 -r1.27 src/sys/netinet6/in6_pcb.h
cvs rdiff -r1.70 -r1.71 src/sys/netinet6/udp6_usrreq.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.