freebsd-skq/sys/net
Bruce M Simpson 1cfd4b5326 Initial import of RFC 2385 (TCP-MD5) digest support.
This is the first of two commits; bringing in the kernel support first.
This can be enabled by compiling a kernel with options TCP_SIGNATURE
and FAST_IPSEC.

For the uninitiated, this is a TCP option which provides for a means of
authenticating TCP sessions which came into being before IPSEC. It is
still relevant today, however, as it is used by many commercial router
vendors, particularly with BGP, and as such has become a requirement for
interconnect at many major Internet points of presence.

Several parts of the TCP and IP headers, including the segment payload,
are digested with MD5, including a shared secret. The PF_KEY interface
is used to manage the secrets using security associations in the SADB.

There is a limitation here in that as there is no way to map a TCP flow
per-port back to an SPI without polluting tcpcb or using the SPD; the
code to do the latter is unstable at this time. Therefore this code only
supports per-host keying granularity.

Whilst FAST_IPSEC is mutually exclusive with KAME IPSEC (and thus IPv6),
TCP_SIGNATURE applies only to IPv4. For the vast majority of prospective
users of this feature, this will not pose any problem.

This implementation is output-only; that is, the option is honoured when
responding to a host initiating a TCP session, but no effort is made
[yet] to authenticate inbound traffic. This is, however, sufficient to
interwork with Cisco equipment.

Tested with a Cisco 2501 running IOS 12.0(27), and Quagga 0.96.4 with
local patches. Patches for tcpdump to validate TCP-MD5 sessions are also
available from me upon request.

Sponsored by:	sentex.net
2004-02-11 04:26:04 +00:00
..
bpf_compat.h
bpf_filter.c
bpf.c Unbreak build of bpf-free kernels. 2003-12-29 08:23:11 +00:00
bpf.h o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
bpfdesc.h
bridge.c correct bridge_version: replace unexpanded RCS keywords by a fixed string 2003-12-24 17:47:45 +00:00
bridge.h
bsd_comp.c
ethernet.h
fddi.h
if_arc.h
if_arcsubr.c Introduce ip_fastforward and remove ip_flow. 2003-11-14 21:02:22 +00:00
if_arp.h
if_atm.h Add a device type for virtual interfaces. 2004-01-26 12:13:11 +00:00
if_atmsubr.c Fix a warning when NATM is not defined. In this case s is not used. 2004-01-09 11:25:14 +00:00
if_disc.c o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
if_dl.h
if_ef.c o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
if_ethersubr.c Introduce ip_fastforward and remove ip_flow. 2003-11-14 21:02:22 +00:00
if_faith.c o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
if_fddisubr.c Introduce ip_fastforward and remove ip_flow. 2003-11-14 21:02:22 +00:00
if_gif.c o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
if_gif.h
if_gre.c Remove NetBSD'isms (add FreeBSD'isms?), which makes gre(4) working again. 2004-01-30 09:03:01 +00:00
if_gre.h Add support for WCCPv2. It should be enablem manually using link2 2004-01-26 12:33:56 +00:00
if_iso88025subr.c Introduce ip_fastforward and remove ip_flow. 2003-11-14 21:02:22 +00:00
if_llc.h
if_loop.c o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
if_media.c
if_media.h Add an ATM sub-type for virtual interfaces. 2004-01-26 11:52:32 +00:00
if_mib.c
if_mib.h
if_ppp.c Don't leak softc's when destroying interfaces. 2004-01-21 18:05:38 +00:00
if_ppp.h
if_pppvar.h
if_sl.c
if_slvar.h
if_sppp.h
if_spppsubr.c Remove #ifdef for ancient source FreeBSD compat. 2004-01-21 19:02:02 +00:00
if_stf.c o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
if_stf.h
if_tap.c
if_tap.h
if_tapvar.h
if_tun.c o eliminate widespread on-stack mbuf use for bpf by introducing 2003-12-28 03:56:00 +00:00
if_tun.h
if_tunvar.h
if_types.h
if_var.h Make the if_broadcastaddr const. All the drivers in the tree which 2003-12-07 05:49:21 +00:00
if_vlan_var.h A network interface driver can support IFCAP_VLAN_MTU only, 2004-01-18 19:29:04 +00:00
if_vlan.c backout the switch to use a zone for vlan tags; this requires 2004-01-03 03:33:39 +00:00
if.c Add the kernel side of network interface renaming support. 2004-02-04 02:54:25 +00:00
if.h
iso88025.h
net_osdep.c
net_osdep.h
netisr.c
netisr.h
pfil.c
pfil.h
pfkeyv2.h Initial import of RFC 2385 (TCP-MD5) digest support. 2004-02-11 04:26:04 +00:00
ppp_comp.h
ppp_deflate.c
ppp_defs.h
ppp_tty.c
radix.c
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c Introduce a MAC label reference in 'struct inpcb', which caches 2003-11-18 00:39:07 +00:00
route.c Remove extraneous unlock. This fixes a panic seen when manipulating static 2004-01-07 23:42:21 +00:00
route.h Introduce tcp_hostcache and remove the tcp specific metrics from 2003-11-20 20:07:39 +00:00
rtsock.c Introduce tcp_hostcache and remove the tcp specific metrics from 2003-11-20 20:07:39 +00:00
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h