summaryrefslogtreecommitdiff
path: root/sys/net/if_enc.h
AgeCommit message (Collapse)Author
2010-07-01Allow to specify an alternative enc(4) interface for an SA. AllReyk Floeter
traffic for this SA will appear on the specified enc interface instead of enc0 and can be filtered and monitored separately. This will allow to group individual ipsec policies to virtual interfaces and simplifies monitoring and pf filtering with many ipsec policies a lot. This diff includes the following changes: - Store the enc interface unit (default 0) in the TDB of an SA and pass it to the enc_getif() lookup when running the bpf or pf_test() handlers. - Add the pfkey SADB_X_EXT_TAP extension to communicate the encX interface unit for a specified SA between userland and kernel. - Update enc(4) again to use an allocate array instead of the TAILQ to lookup the matching enc interface in enc_getif() quickly. Discussed with many, tested by a few, will need more testing & review. ok deraadt@
2010-06-29Replace enc(4) with a new implementation as a cloner device. We stillReyk Floeter
create enc0 by default, but it is possible to add additional enc interfaces. This will be used later to allow alternative encs per policy or to have an enc per rdomain when IPsec becomes rdomain-aware. manpage bits ok jmc@ input from henning@ deraadt@ toby@ naddy@ ok henning@ claudio@
2001-06-25Copyright update.Angelos D. Keromytis
2001-06-09By popular demand, protect from multiple inclusion, and fix to use theAngelos D. Keromytis
same naming style.
2000-12-30For bridged IPsec, use the gif* interfaces.Angelos D. Keromytis
2000-01-15Don't allow enc0 to be added to a bridge, as it's used for allAngelos D. Keromytis
non-bound SAs...
1999-12-31indentTheo de Raadt
1999-12-27Implement ioctls for binding SAs to enc interfaces (to be used withAngelos D. Keromytis
the bridge).
1999-10-29enc_softc definitionAngelos D. Keromytis
1998-06-10make the packets which were successfully processed by IPSec available toNiels Provos
bpf via the enc0 interface, using linktype DLT_ENC.