rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame^] | 1 | |
| 2 | #ifndef IPSEC_TCPIP_INTERFACE_H |
| 3 | #define IPSEC_TCPIP_INTERFACE_H |
| 4 | |
| 5 | #include "ipsec_common_interface.h" |
| 6 | |
| 7 | /******************************************************************************* |
| 8 | *FUNCTION |
| 9 | * |
| 10 | *DESCRIPTION |
| 11 | * |
| 12 | *PARAMETERS |
| 13 | * |
| 14 | *RETURNS |
| 15 | * |
| 16 | *******************************************************************************/ |
| 17 | kal_uint32 ipsec_tcpip_get_sa_id(kal_uint32 interface_id, ipsec_addr_family_enum addr_family, |
| 18 | const kal_uint8* p_src_addr, const kal_uint8* p_dst_addr, ipsec_proto_enum next_layer_protocol, |
| 19 | kal_uint16 src_port, kal_uint16 dst_port); |
| 20 | |
| 21 | kal_uint32 ipsec_tcpip_get_spi(kal_uint32 interface_id, ipsec_addr_family_enum addr_family, |
| 22 | const kal_uint8* p_src_addr, const kal_uint8* p_dst_addr, ipsec_proto_enum next_layer_protocol, |
| 23 | kal_uint16 src_port, kal_uint16 dst_port); |
| 24 | |
| 25 | kal_uint32 ipsec_tcpip_get_spi_list(kal_uint32 interface_id, ipsec_addr_family_enum addr_family, |
| 26 | const kal_uint8* p_dst_addr, ipsec_proto_enum next_layer_protocol, kal_uint16 dst_port, |
| 27 | kal_uint32* p_spi_list, kal_uint32 max_spi_cnt); |
| 28 | |
| 29 | |
| 30 | #endif |