diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-10-21 13:37:16 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-10-21 14:18:23 +0200 |
commit | 0b0f466bbc9d63b84fd9e893c0eccddb92202c8a (patch) | |
tree | 15d0425ffc4093fbb3ffdddb1c57bc670e9f9901 /src/libhydra/kernel/kernel_interface.h | |
parent | bf3c2dde688b8f5b4288f5a07afd4eaa7ccbf407 (diff) | |
download | strongswan-0b0f466bbc9d63b84fd9e893c0eccddb92202c8a.tar.bz2 strongswan-0b0f466bbc9d63b84fd9e893c0eccddb92202c8a.tar.xz |
Defined functions in the kernel interface to flush SAD and SPD entries.
Diffstat (limited to 'src/libhydra/kernel/kernel_interface.h')
-rw-r--r-- | src/libhydra/kernel/kernel_interface.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libhydra/kernel/kernel_interface.h b/src/libhydra/kernel/kernel_interface.h index 4c2f7ef99..991cfafd0 100644 --- a/src/libhydra/kernel/kernel_interface.h +++ b/src/libhydra/kernel/kernel_interface.h @@ -175,6 +175,13 @@ struct kernel_interface_t { mark_t mark); /** + * Flush all SAs from the SAD. + * + * @return SUCCESS if operation completed + */ + status_t (*flush_sas) (kernel_interface_t *this); + + /** * Add a policy to the SPD. * * A policy is always associated to an SA. Traffic which matches a @@ -241,6 +248,13 @@ struct kernel_interface_t { mark_t mark, policy_priority_t priority); /** + * Flush all policies from the SPD. + * + * @return SUCCESS if operation completed + */ + status_t (*flush_policies) (kernel_interface_t *this); + + /** * Get our outgoing source address for a destination. * * Does a route lookup to get the source address used to reach dest. |