libnl 3.7.0
|
The AE interface allows a user to retrieve and update various Security Association (SA) attributes such as lifetime, replay state etc. More...
Functions | |
int | xfrmnl_ae_parse (struct nlmsghdr *n, struct xfrmnl_ae **result) |
XFRM AE Flags Translations | |
char * | xfrmnl_ae_flags2str (int flags, char *buf, size_t len) |
int | xfrmnl_ae_str2flag (const char *name) |
XFRM AE Update | |
int | xfrmnl_ae_set (struct nl_sock *sk, struct xfrmnl_ae *ae, int flags) |
XFRM AE Object Allocation/Freeage | |
struct xfrmnl_ae * | xfrmnl_ae_alloc (void) |
void | xfrmnl_ae_put (struct xfrmnl_ae *ae) |
XFRM AE Get | |
int | xfrmnl_ae_build_get_request (struct nl_addr *daddr, unsigned int spi, unsigned int protocol, unsigned int mark_mask, unsigned int mark_value, struct nl_msg **result) |
int | xfrmnl_ae_get_kernel (struct nl_sock *sock, struct nl_addr *daddr, unsigned int spi, unsigned int protocol, unsigned int mark_mask, unsigned int mark_value, struct xfrmnl_ae **result) |
Attributes | |
struct nl_addr * | xfrmnl_ae_get_daddr (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_daddr (struct xfrmnl_ae *ae, struct nl_addr *addr) |
int | xfrmnl_ae_get_spi (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_spi (struct xfrmnl_ae *ae, unsigned int spi) |
int | xfrmnl_ae_get_family (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_family (struct xfrmnl_ae *ae, unsigned int family) |
int | xfrmnl_ae_get_proto (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_proto (struct xfrmnl_ae *ae, unsigned int protocol) |
struct nl_addr * | xfrmnl_ae_get_saddr (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_saddr (struct xfrmnl_ae *ae, struct nl_addr *addr) |
int | xfrmnl_ae_get_flags (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_flags (struct xfrmnl_ae *ae, unsigned int flags) |
int | xfrmnl_ae_get_reqid (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_reqid (struct xfrmnl_ae *ae, unsigned int reqid) |
int | xfrmnl_ae_get_mark (struct xfrmnl_ae *ae, unsigned int *mark_mask, unsigned int *mark_value) |
int | xfrmnl_ae_set_mark (struct xfrmnl_ae *ae, unsigned int value, unsigned int mask) |
int | xfrmnl_ae_get_curlifetime (struct xfrmnl_ae *ae, unsigned long long int *curr_bytes, unsigned long long int *curr_packets, unsigned long long int *curr_add_time, unsigned long long int *curr_use_time) |
int | xfrmnl_ae_set_curlifetime (struct xfrmnl_ae *ae, unsigned long long int curr_bytes, unsigned long long int curr_packets, unsigned long long int curr_add_time, unsigned long long int curr_use_time) |
int | xfrmnl_ae_get_replay_maxage (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_replay_maxage (struct xfrmnl_ae *ae, unsigned int replay_maxage) |
int | xfrmnl_ae_get_replay_maxdiff (struct xfrmnl_ae *ae) |
int | xfrmnl_ae_set_replay_maxdiff (struct xfrmnl_ae *ae, unsigned int replay_maxdiff) |
int | xfrmnl_ae_get_replay_state (struct xfrmnl_ae *ae, unsigned int *oseq, unsigned int *seq, unsigned int *bmp) |
int | xfrmnl_ae_set_replay_state (struct xfrmnl_ae *ae, unsigned int oseq, unsigned int seq, unsigned int bitmap) |
int | xfrmnl_ae_get_replay_state_esn (struct xfrmnl_ae *ae, unsigned int *oseq, unsigned int *seq, unsigned int *oseq_hi, unsigned int *seq_hi, unsigned int *replay_window, unsigned int *bmp_len, unsigned int *bmp) |
int | xfrmnl_ae_set_replay_state_esn (struct xfrmnl_ae *ae, unsigned int oseq, unsigned int seq, unsigned int oseq_hi, unsigned int seq_hi, unsigned int replay_window, unsigned int bmp_len, unsigned int *bmp) |
The AE interface allows a user to retrieve and update various Security Association (SA) attributes such as lifetime, replay state etc.
char * xfrmnl_ae_flags2str | ( | int | flags, |
char * | buf, | ||
size_t | len | ||
) |
int xfrmnl_ae_set | ( | struct nl_sock * | sk, |
struct xfrmnl_ae * | ae, | ||
int | flags | ||
) |
int xfrmnl_ae_parse | ( | struct nlmsghdr * | n, |
struct xfrmnl_ae ** | result | ||
) |
int xfrmnl_ae_build_get_request | ( | struct nl_addr * | daddr, |
unsigned int | spi, | ||
unsigned int | protocol, | ||
unsigned int | mark_mask, | ||
unsigned int | mark_value, | ||
struct nl_msg ** | result | ||
) |
int xfrmnl_ae_get_kernel | ( | struct nl_sock * | sock, |
struct nl_addr * | daddr, | ||
unsigned int | spi, | ||
unsigned int | protocol, | ||
unsigned int | mark_mask, | ||
unsigned int | mark_value, | ||
struct xfrmnl_ae ** | result | ||
) |
int xfrmnl_ae_set_daddr | ( | struct xfrmnl_ae * | ae, |
struct nl_addr * | addr | ||
) |
int xfrmnl_ae_set_spi | ( | struct xfrmnl_ae * | ae, |
unsigned int | spi | ||
) |
int xfrmnl_ae_set_family | ( | struct xfrmnl_ae * | ae, |
unsigned int | family | ||
) |
int xfrmnl_ae_set_proto | ( | struct xfrmnl_ae * | ae, |
unsigned int | protocol | ||
) |
int xfrmnl_ae_set_saddr | ( | struct xfrmnl_ae * | ae, |
struct nl_addr * | addr | ||
) |
int xfrmnl_ae_set_flags | ( | struct xfrmnl_ae * | ae, |
unsigned int | flags | ||
) |
int xfrmnl_ae_set_reqid | ( | struct xfrmnl_ae * | ae, |
unsigned int | reqid | ||
) |
int xfrmnl_ae_get_mark | ( | struct xfrmnl_ae * | ae, |
unsigned int * | mark_mask, | ||
unsigned int * | mark_value | ||
) |
int xfrmnl_ae_set_mark | ( | struct xfrmnl_ae * | ae, |
unsigned int | value, | ||
unsigned int | mask | ||
) |
int xfrmnl_ae_get_curlifetime | ( | struct xfrmnl_ae * | ae, |
unsigned long long int * | curr_bytes, | ||
unsigned long long int * | curr_packets, | ||
unsigned long long int * | curr_add_time, | ||
unsigned long long int * | curr_use_time | ||
) |
int xfrmnl_ae_set_curlifetime | ( | struct xfrmnl_ae * | ae, |
unsigned long long int | curr_bytes, | ||
unsigned long long int | curr_packets, | ||
unsigned long long int | curr_add_time, | ||
unsigned long long int | curr_use_time | ||
) |
int xfrmnl_ae_set_replay_maxage | ( | struct xfrmnl_ae * | ae, |
unsigned int | replay_maxage | ||
) |
int xfrmnl_ae_set_replay_maxdiff | ( | struct xfrmnl_ae * | ae, |
unsigned int | replay_maxdiff | ||
) |
int xfrmnl_ae_get_replay_state | ( | struct xfrmnl_ae * | ae, |
unsigned int * | oseq, | ||
unsigned int * | seq, | ||
unsigned int * | bmp | ||
) |
int xfrmnl_ae_set_replay_state | ( | struct xfrmnl_ae * | ae, |
unsigned int | oseq, | ||
unsigned int | seq, | ||
unsigned int | bitmap | ||
) |
int xfrmnl_ae_get_replay_state_esn | ( | struct xfrmnl_ae * | ae, |
unsigned int * | oseq, | ||
unsigned int * | seq, | ||
unsigned int * | oseq_hi, | ||
unsigned int * | seq_hi, | ||
unsigned int * | replay_window, | ||
unsigned int * | bmp_len, | ||
unsigned int * | bmp | ||
) |