Subject: CVS commit: src/sys/netinet
To: None <>
From: Luke Mewburn <>
List: source-changes
Date: 03/16/2003 05:33:29
Module Name:	src
Committed By:	lukem
Date:		Sun Mar 16 03:33:29 UTC 2003

Modified Files:
	src/sys/netinet: in_pcb.c

Log Message:
Enable check in in_pcbbind() to enforce sin_family == AF_INET.
If there are any "old programs which incorrectly set this" left,
they will now fail with EAFNOSUPPORT.
This make in_pcbbind() consistent with in_pcbconnect() and the other
protocol families.

As per my PR [kern/4441], which has the comment:
	Steven's "TCP/IP Illustrated, Volume 2", page 730, notes that
	in_pcbbind() has the check which determines if sin_family == AF_INET
	commented out, but the same check in in_pcbconnect() is still active.

To generate a diff of this commit:
cvs rdiff -r1.80 -r1.81 src/sys/netinet/in_pcb.c

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