freebsd-dev/sys/netipsec
Robert Watson 4d896055ce 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
2008-07-09 15:48:16 +00:00
..
ah_var.h
ah.h
esp_var.h
esp.h
ipcomp_var.h
ipcomp.h
ipip_var.h
ipsec6.h Rather than passing around a cached 'priv', pass in an ucred to 2008-02-02 14:11:31 +00:00
ipsec_input.c In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
ipsec_mbuf.c Commit IPv6 support for FAST_IPSEC to the tree. 2007-07-01 11:41:27 +00:00
ipsec_output.c In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
ipsec.c In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
ipsec.h In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
key_debug.c Fix bugs when allocating and passing information of current lifetime and 2008-03-02 17:12:28 +00:00
key_debug.h
key_var.h First steps towards IPSec cleanup. 2006-03-25 13:38:52 +00:00
key.c Enter the 1990s. Use real function declaration. 2008-06-29 00:49:50 +00:00
key.h
keydb.h First steps towards IPSec cleanup. 2006-03-25 13:38:52 +00:00
keysock.c Remove unused support for local and foreign addresses in generic raw 2008-07-09 15:48:16 +00:00
keysock.h Fix stack corruptions on amd64. 2006-01-21 10:44:34 +00:00
xform_ah.c In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
xform_esp.c In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
xform_ipcomp.c In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
xform_ipip.c In addition to the ipsec_osdep.h removal a week ago, now also eliminate 2008-05-24 15:32:46 +00:00
xform_tcp.c Add ';' missed with the SYSINIT changes. 2008-03-21 18:31:42 +00:00
xform.h Add sysctls to if_enc(4) to control whether the firewalls or 2007-11-28 22:33:53 +00:00