#include <asm/types.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <openssl/des.h>#include <openssl/aes.h>#include <openssl/blowfish.h>Go to the source code of this file.
Classes | |
| struct | _hip_sadb_entry |
| struct | _hip_sadb_dst_entry |
| struct | _hip_lsi_entry |
| struct | _hip_proto_sel_entry |
Defines | |
| #define | SADB_SIZE 512 |
| #define | LSI4(a) (((struct sockaddr_in*)a)->sin_addr.s_addr) |
| #define | LSI_PKT_BUFFER_SIZE 2000 |
| #define | LSI_ENTRY_LIFETIME 120 |
| #define | PROTO_SEL_SIZE 512 |
| #define | PROTO_SEL_ENTRY_LIFETIME 900 |
| #define | PROTO_SEL_DEFAULT_FAMILY AF_INET |
| #define | hip_proto_sel_hash(a) (a % PROTO_SEL_SIZE) |
Typedefs | |
| typedef _hip_sadb_entry | hip_sadb_entry |
| typedef _hip_sadb_dst_entry | hip_sadb_dst_entry |
| typedef _hip_lsi_entry | hip_lsi_entry |
| typedef _hip_proto_sel_entry | hip_proto_sel_entry |
Functions | |
| void | hip_sadb_init () |
| int | hip_sadb_add (__u32 type, __u32 mode, struct sockaddr *inner_src, struct sockaddr *inner_dst, struct sockaddr *src, struct sockaddr *dst, __u16 port, __u32 spi, __u8 *e_key, __u32 e_type, __u32 e_keylen, __u8 *a_key, __u32 a_type, __u32 a_keylen, __u32 lifetime, __u16 hitmagic) |
| int | hip_sadb_delete (__u32 type, struct sockaddr *src, struct sockaddr *dst, __u32 spi) |
| void | hip_remove_expired_lsi_entries () |
| void | hip_add_lsi (struct sockaddr *addr, struct sockaddr *lsi4, struct sockaddr *lsi6) |
| int | buffer_packet (struct sockaddr *lsi, __u8 *data, int len) |
| void | unbuffer_packets (hip_lsi_entry *entry) |
| hip_lsi_entry * | hip_lookup_lsi (struct sockaddr *lsi) |
| hip_sadb_entry * | hip_sadb_lookup_spi (__u32 spi) |
| hip_sadb_entry * | hip_sadb_lookup_addr (struct sockaddr *addr) |
| hip_sadb_entry * | hip_sadb_get_next (hip_sadb_entry *placemark) |
| int | hip_select_family_by_proto (__u32 lsi, __u8 proto, __u8 *header, struct timeval *now) |
| int | hip_add_proto_sel_entry (__u32 lsi, __u8 proto, __u8 *header, int family, int dir, struct timeval *now) |
| void | hip_remove_expired_sel_entries () |
| #define hip_proto_sel_hash | ( | a | ) | (a % PROTO_SEL_SIZE) |
| #define LSI4 | ( | a | ) | (((struct sockaddr_in*)a)->sin_addr.s_addr) |
| #define LSI_ENTRY_LIFETIME 120 |
| #define LSI_PKT_BUFFER_SIZE 2000 |
| #define PROTO_SEL_DEFAULT_FAMILY AF_INET |
| #define PROTO_SEL_ENTRY_LIFETIME 900 |
| #define PROTO_SEL_SIZE 512 |
| #define SADB_SIZE 512 |
| typedef struct _hip_lsi_entry hip_lsi_entry |
| typedef struct _hip_proto_sel_entry hip_proto_sel_entry |
| typedef struct _hip_sadb_dst_entry hip_sadb_dst_entry |
| typedef struct _hip_sadb_entry hip_sadb_entry |
| int buffer_packet | ( | struct sockaddr * | lsi, | |
| __u8 * | data, | |||
| int | len | |||
| ) |
| void hip_add_lsi | ( | struct sockaddr * | addr, | |
| struct sockaddr * | lsi4, | |||
| struct sockaddr * | lsi6 | |||
| ) |
| int hip_add_proto_sel_entry | ( | __u32 | lsi, | |
| __u8 | proto, | |||
| __u8 * | header, | |||
| int | family, | |||
| int | dir, | |||
| struct timeval * | now | |||
| ) |
| hip_lsi_entry * hip_lookup_lsi | ( | struct sockaddr * | lsi | ) |
| void hip_remove_expired_lsi_entries | ( | ) |
| void hip_remove_expired_sel_entries | ( | ) |
| int hip_sadb_add | ( | __u32 | type, | |
| __u32 | mode, | |||
| struct sockaddr * | inner_src, | |||
| struct sockaddr * | inner_dst, | |||
| struct sockaddr * | src, | |||
| struct sockaddr * | dst, | |||
| __u16 | port, | |||
| __u32 | spi, | |||
| __u8 * | e_key, | |||
| __u32 | e_type, | |||
| __u32 | e_keylen, | |||
| __u8 * | a_key, | |||
| __u32 | a_type, | |||
| __u32 | a_keylen, | |||
| __u32 | lifetime, | |||
| __u16 | hitmagic | |||
| ) |
| hip_sadb_entry* hip_sadb_get_next | ( | hip_sadb_entry * | placemark | ) |
| void hip_sadb_init | ( | ) |
| hip_sadb_entry* hip_sadb_lookup_addr | ( | struct sockaddr * | addr | ) |
| hip_sadb_entry* hip_sadb_lookup_spi | ( | __u32 | spi | ) |
| void unbuffer_packets | ( | hip_lsi_entry * | entry | ) |
1.5.1