Removed references to protocol_id_t from kernel interface.
Instead we use the actual IP protocol identifier (the conversion now happens in child_sa_t and kernel_handler_t).
This commit is contained in:
@@ -63,7 +63,7 @@ struct kernel_interface_t {
|
||||
* @return SUCCESS if operation completed
|
||||
*/
|
||||
status_t (*get_spi)(kernel_interface_t *this, host_t *src, host_t *dst,
|
||||
protocol_id_t protocol, u_int32_t reqid, u_int32_t *spi);
|
||||
u_int8_t protocol, u_int32_t reqid, u_int32_t *spi);
|
||||
|
||||
/**
|
||||
* Get a Compression Parameter Index (CPI) from the kernel.
|
||||
@@ -108,7 +108,7 @@ struct kernel_interface_t {
|
||||
*/
|
||||
status_t (*add_sa) (kernel_interface_t *this,
|
||||
host_t *src, host_t *dst, u_int32_t spi,
|
||||
protocol_id_t protocol, u_int32_t reqid, mark_t mark,
|
||||
u_int8_t protocol, u_int32_t reqid, mark_t mark,
|
||||
lifetime_cfg_t *lifetime,
|
||||
u_int16_t enc_alg, chunk_t enc_key,
|
||||
u_int16_t int_alg, chunk_t int_key,
|
||||
@@ -138,7 +138,7 @@ struct kernel_interface_t {
|
||||
* the kernel interface can't update the SA
|
||||
*/
|
||||
status_t (*update_sa)(kernel_interface_t *this,
|
||||
u_int32_t spi, protocol_id_t protocol, u_int16_t cpi,
|
||||
u_int32_t spi, u_int8_t protocol, u_int16_t cpi,
|
||||
host_t *src, host_t *dst,
|
||||
host_t *new_src, host_t *new_dst,
|
||||
bool encap, bool new_encap, mark_t mark);
|
||||
@@ -155,7 +155,7 @@ struct kernel_interface_t {
|
||||
* @return SUCCESS if operation completed
|
||||
*/
|
||||
status_t (*query_sa) (kernel_interface_t *this, host_t *src, host_t *dst,
|
||||
u_int32_t spi, protocol_id_t protocol, mark_t mark,
|
||||
u_int32_t spi, u_int8_t protocol, mark_t mark,
|
||||
u_int64_t *bytes);
|
||||
|
||||
/**
|
||||
@@ -170,7 +170,7 @@ struct kernel_interface_t {
|
||||
* @return SUCCESS if operation completed
|
||||
*/
|
||||
status_t (*del_sa) (kernel_interface_t *this, host_t *src, host_t *dst,
|
||||
u_int32_t spi, protocol_id_t protocol, u_int16_t cpi,
|
||||
u_int32_t spi, u_int8_t protocol, u_int16_t cpi,
|
||||
mark_t mark);
|
||||
|
||||
/**
|
||||
@@ -199,7 +199,7 @@ struct kernel_interface_t {
|
||||
traffic_selector_t *src_ts,
|
||||
traffic_selector_t *dst_ts,
|
||||
policy_dir_t direction, u_int32_t spi,
|
||||
protocol_id_t protocol, u_int32_t reqid,
|
||||
u_int8_t protocol, u_int32_t reqid,
|
||||
mark_t mark, ipsec_mode_t mode, u_int16_t ipcomp,
|
||||
u_int16_t cpi, bool routed);
|
||||
|
||||
@@ -436,7 +436,7 @@ struct kernel_interface_t {
|
||||
* @param hard TRUE if it is a hard expire, FALSE otherwise
|
||||
*/
|
||||
void (*expire)(kernel_interface_t *this, u_int32_t reqid,
|
||||
protocol_id_t protocol, u_int32_t spi, bool hard);
|
||||
u_int8_t protocol, u_int32_t spi, bool hard);
|
||||
|
||||
/**
|
||||
* Raise a mapping event.
|
||||
|
||||
Reference in New Issue
Block a user