aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/child_sa.h
Commit message (Collapse)AuthorAgeFilesLines
* child-sa: Add a getter for CHILD_SA install timeMartin Willi2014-01-231-0/+7
|
* Fix various API doc issues and typosTobias Brunner2013-07-181-2/+2
| | | | Partially based on an old patch by Adrian-Ken Rueegsegger.
* child-sa: replace get_traffic_selectors() with create_ts_enumerator()Martin Willi2013-07-171-5/+8
| | | | | Not directly returning a linked list allows us to change the internals of the CHILD_SA transparently.
* kernel-interface: add an exchange initiator parameter to add_sa()Martin Willi2013-06-111-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new flag gives the kernel-interface a hint how it should priorize the use of newly installed SAs during rekeying. Consider the following rekey procedure in IKEv2: Initiator --- Responder I1 -------CREATE-------> R1 I2 <------CREATE-------- -------DELETE-------> R2 I3 <------DELETE-------- SAs are always handled as pairs, the following happens at the SA level: * Initiator starts the exchange at I1 * Responder installs new SA pair at R1 * Initiator installs new SA pair at I2 * Responder removes old SA pair at R2 * Initiator removes old SA pair at I3 This makes sure SAs get installed/removed overlapping during rekeying. However, to avoid any packet loss, it is crucial that the new outbound SA gets activated at the correct position: * as exchange initiator, in I2 * as exchange responder, in R2 This should guarantee that we don't use the new outbound SA before the peer could install its corresponding inbound SA. The new parameter allows the kernel backend to install the new SA with appropriate priorities, i.e. it should: * as exchange inititator, have the new outbound SA installed with higher priority than the old SA * as exchange responder, have the new outbound SA installed with lower priority than the old SA While we could split up the SA installation at the responder, this approach has another advantage: it allows the kernel backend to switch SAs based on other criteria, for example when receiving traffic on the new inbound SA.
* child_sa_t.get_usestats() can additionally return the number of processed ↵Martin Willi2013-03-141-1/+2
| | | | packets
* Support multiple virtual IPs on peer_cfg and ike_sa classesMartin Willi2012-08-301-2/+2
|
* Added a getter for CHILD_SA marksMartin Willi2012-03-221-0/+8
|
* Do not use TFC padding if peer does not support ESPv3Martin Willi2010-12-201-1/+2
|
* Wrap getters for dpd/close action into CHILD_SA, allows us to override themMartin Willi2010-06-021-0/+28
|
* manage synced SAs in IKE_SA Manager, tag them with IKE_PASSIVE stateMartin Willi2010-04-071-1/+1
|
* Moving charon to libcharon.Tobias Brunner2010-03-191-0/+337