/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | aolib.h | 374 uint8_t keyflags, uint8_t keylen, const char *key); 381 uint8_t keyflags, uint8_t keylen, const char *key) in test_prepare_key() argument 388 maclen, keyflags, keylen, key); in test_prepare_key() 392 const char *key, uint8_t keyflags, in test_prepare_def_key() argument 400 prefix, vrf, sndid, rcvid, 0, keyflags, in test_prepare_def_key() 428 const char *key, uint8_t keyflags, in test_add_key_vrf() argument 435 err = test_prepare_def_key(&tmp, key, keyflags, in_addr, prefix, in test_add_key_vrf() 635 const char *key, uint8_t keyflags, in test_add_repaired_key() argument 642 err = test_prepare_def_key(&tmp, key, keyflags, in_addr, prefix, in test_add_repaired_key()
|
H A D | sock.c | 141 uint8_t maclen, uint8_t keyflags, in test_prepare_key_sockaddr() argument 152 ao->keyflags = keyflags; in test_prepare_key_sockaddr() 251 __cmp_ao(keyflags); in test_cmp_getsockopt_setsockopt()
|
/linux/net/ipv4/ |
H A D | tcp_ao.c | 149 if (l3index >= 0 && (key->keyflags & TCP_AO_KEYF_IFINDEX)) { in __tcp_ao_key_cmp() 601 !!(key->keyflags & TCP_AO_KEYF_EXCLUDE_OPT), in tcp_ao_hash_hdr() 650 !!(key->keyflags & TCP_AO_KEYF_EXCLUDE_OPT), in tcp_ao_hash_skb() 1626 if (cmd.keyflags & ~TCP_AO_KEYF_ALL) in tcp_ao_add_cmd() 1634 if (cmd.ifindex && !(cmd.keyflags & TCP_AO_KEYF_IFINDEX)) in tcp_ao_add_cmd() 1638 if (cmd.keyflags & TCP_AO_KEYF_IFINDEX && cmd.ifindex) { in tcp_ao_add_cmd() 1671 if (cmd.keyflags & TCP_AO_KEYF_IFINDEX) { in tcp_ao_add_cmd() 1717 key->keyflags = cmd.keyflags; in tcp_ao_add_cmd() 1838 if (cmd.keyflags & ~TCP_AO_DEL_KEYF_ALL) in tcp_ao_del_cmd() 1846 if (cmd.ifindex && !(cmd.keyflags & TCP_AO_KEYF_IFINDEX)) in tcp_ao_del_cmd() [all …]
|
/linux/include/uapi/linux/ |
H A D | tcp.h | 392 __u8 keyflags; /* see TCP_AO_KEYF_ */ member 410 __u8 keyflags; /* see TCP_AO_KEYF_ */ member 457 __u8 keyflags; /* in/out: see TCP_AO_KEYF_ */ member
|
/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | key-management.c | 168 static int test_add_current_rnext_key(int sk, const char *key, uint8_t keyflags, in test_add_current_rnext_key() argument 178 prefix, 0, sndid, rcvid, 0, keyflags, in test_add_current_rnext_key() 191 static int __try_add_current_rnext_key(int sk, const char *key, uint8_t keyflags, in __try_add_current_rnext_key() argument 199 err = test_add_current_rnext_key(sk, key, keyflags, in_addr, prefix, in __try_add_current_rnext_key() 214 uint8_t keyflags, in try_add_current_rnext_key() argument 221 err = __try_add_current_rnext_key(sk, key, keyflags, in_addr, prefix, in try_add_current_rnext_key() 528 uint8_t keyflags = 0; in test_add_key_cr() local 535 keyflags |= TCP_AO_KEYF_IFINDEX; in test_add_key_cr() 538 keyflags, pwd_len, pwd); in test_add_key_cr()
|
H A D | setsockopt-closed.c | 226 offsetof(struct tcp_ao_del, keyflags)); in extend_tests() 323 ao.keyflags = (uint8_t)(-1); in test_einval_add_key() 361 ao.keyflags |= TCP_AO_KEYF_IFINDEX; in test_einval_add_key() 417 del.keyflags = (uint8_t)(-1); in test_einval_del_key() 426 del.keyflags |= TCP_AO_KEYF_IFINDEX; in test_einval_del_key() 623 out.keyflags = (uint8_t)(-1); in test_einval_get_keys()
|
H A D | unsigned-md5.c | 323 uint8_t keyflags = 0; in try_add_key_vrf() local 326 keyflags |= TCP_AO_KEYF_IFINDEX; in try_add_key_vrf() 335 return test_add_key_vrf(sk, ao_password, keyflags, in_addr, prefix, in try_add_key_vrf()
|