Defined functions in the kernel interface to flush SAD and SPD entries.
This commit is contained in:
@@ -174,6 +174,13 @@ struct kernel_interface_t {
|
||||
u_int32_t spi, u_int8_t protocol, u_int16_t cpi,
|
||||
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.
|
||||
*
|
||||
@@ -240,6 +247,13 @@ struct kernel_interface_t {
|
||||
policy_dir_t direction, u_int32_t reqid,
|
||||
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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user