cvs commit: src/sys/net raw_cb.c raw_cb.h raw_usrreq.c rtsock.c
src/sys/netipsec keysock.c
Robert Watson
rwatson at FreeBSD.org
Wed Jul 9 15:49:26 UTC 2008
rwatson 2008-07-09 15:48:16 UTC
FreeBSD src repository
Modified files:
sys/net raw_cb.c raw_cb.h raw_usrreq.c rtsock.c
sys/netipsec keysock.c
Log:
SVN rev 180385 on 2008-07-09 15:48:16Z by rwatson
Remove unused support for local and foreign addresses in generic raw
socket support. These utility routines are used only for routing and
pfkey sockets, neither of which have a notion of address, so were
required to mock up fake socket addresses to avoid connection
requirements for applications that did not specify their own fake
addresses (most of them).
Quite a bit of the removed code is #ifdef notdef, since raw sockets
don't support bind() or connect() in practice. Removing this
simplifies the raw socket implementation, and removes two (commented
out) uses of dtom(9).
Fake addresses passed to sendto(2) by applications are ignored for
compatibility reasons, but this is now done in a more consistent way
(and with a comment). Possibly, EINVAL could be returned here in
the future if it is determined that no applications depend on the
semantic inconsistency of specifying a destination address for a
protocol without address support, but this will require some amount
of careful surveying.
NB: This does not affect netinet, netinet6, or other wire protocol
raw sockets, which provide their own independent infrastructure with
control block address support specific to the protocol.
MFC after: 3 weeks
Reviewed by: bz
Revision Changes Path
1.37 +0 -37 src/sys/net/raw_cb.c
1.22 +1 -5 src/sys/net/raw_cb.h
1.46 +30 -71 src/sys/net/raw_usrreq.c
1.148 +1 -3 src/sys/net/rtsock.c
1.21 +0 -3 src/sys/netipsec/keysock.c
More information about the cvs-src
mailing list