- working policy installation and removal

This commit is contained in:
Martin Willi
2006-03-01 15:56:51 +00:00
parent fb8aa445d2
commit 5d187bd234
8 changed files with 345 additions and 101 deletions
+11
View File
@@ -69,6 +69,11 @@ struct kernel_interface_t {
chunk_t integrity_key,
bool replace);
status_t (*del_sa) (kernel_interface_t *this,
host_t *dst,
u_int32_t spi,
protocol_id_t protocol);
status_t (*add_policy) (kernel_interface_t *this,
host_t *me, host_t *other,
host_t *src, host_t *dst,
@@ -77,6 +82,12 @@ struct kernel_interface_t {
bool ah, bool esp,
u_int32_t reqid);
status_t (*del_policy) (kernel_interface_t *this,
host_t *me, host_t *other,
host_t *src, host_t *dst,
u_int8_t src_hostbits, u_int8_t dst_hostbits,
int direction, int upper_proto);
/**
* @brief Destroys a kernel_interface object.
*