CVSROOT: /cvs Module name: src Changes by: r...@cvs.openbsd.org 2010/07/09 10:58:06
Modified files: sys/net : if_bridge.c if_pfsync.c if_pfsync.h pfkeyv2.c pfkeyv2.h route.c sys/netinet : ip_ah.c ip_esp.c ip_input.c ip_ipcomp.c ip_ipsp.c ip_ipsp.h ip_output.c ip_spd.c ipsec_input.c ipsec_output.c tcp_input.c tcp_output.c tcp_var.h udp_usrreq.c sys/netinet6 : ip6_forward.c ip6_output.c Log message: Add support for using IPsec in multiple rdomains. This allows to run isakmpd/iked/ipsecctl in multiple rdomains independently (with "route exec"); the kernel will pickup the rdomain from the process context of the pfkey socket and load the flows and SAs into the matching rdomain encap routing table. The network stack also needs to pass the rdomain to the ipsec stack to lookup the correct rdomain that belongs to an interface/mbuf/... You can now run individual IPsec configs per rdomain or create IPsec VPNs between multiple rdomains on the same machine ;). Note that a primary enc(4) in addition to enc0 interface is required per rdomain, eg. enc1 rdomain 1. Test by some people, mostly on existing "rdomain 0" setups. Was in snaps for some days and people didn't complain. ok claudio@ naddy@