Home
last modified time | relevance | path

Searched refs:keyflags (Results 1 – 7 of 7) sorted by relevance

/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Daolib.h375 uint8_t keyflags, uint8_t keylen, const char *key);
382 uint8_t keyflags, uint8_t keylen, const char *key) in test_prepare_key() argument
389 maclen, keyflags, keylen, key); in test_prepare_key()
393 const char *key, uint8_t keyflags, in test_prepare_def_key() argument
401 prefix, vrf, sndid, rcvid, 0, keyflags, in test_prepare_def_key()
408 uint8_t keyflags, int ifindex);
423 key->keyflags, key->ifindex); in test_verify_socket_key()
431 const char *key, uint8_t keyflags, in test_add_key_vrf() argument
438 err = test_prepare_def_key(&tmp, key, keyflags, in_addr, prefix, in test_add_key_vrf()
703 const char *key, uint8_t keyflags, in test_add_repaired_key() argument
[all …]
H A Dsock.c212 uint8_t maclen, uint8_t keyflags, in test_prepare_key_sockaddr() argument
223 ao->keyflags = keyflags; in test_prepare_key_sockaddr()
255 uint8_t sndid, uint8_t rcvid, uint8_t keyflags, int ifindex) in test_get_one_ao() argument
265 tmp.keyflags = keyflags; in test_get_one_ao()
324 __cmp_ao(keyflags); in test_cmp_getsockopt_setsockopt()
/linux/tools/testing/selftests/net/tcp_ao/
H A Dkey-management.c80 del.keyflags = TCP_AO_KEYF_IFINDEX; in test_del_key()
103 del.keyflags, del.ifindex); in test_del_key()
173 static int test_add_current_rnext_key(int sk, const char *key, uint8_t keyflags, in test_add_current_rnext_key() argument
183 prefix, 0, sndid, rcvid, 0, keyflags, in test_add_current_rnext_key()
196 static int __try_add_current_rnext_key(int sk, const char *key, uint8_t keyflags, in __try_add_current_rnext_key() argument
204 err = test_add_current_rnext_key(sk, key, keyflags, in_addr, prefix, in __try_add_current_rnext_key()
219 uint8_t keyflags, in try_add_current_rnext_key() argument
226 err = __try_add_current_rnext_key(sk, key, keyflags, in_addr, prefix, in try_add_current_rnext_key()
514 uint8_t keyflags = 0; in test_add_key_cr() local
521 keyflags |= TCP_AO_KEYF_IFINDEX; in test_add_key_cr()
[all …]
H A Dsetsockopt-closed.c226 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 Dunsigned-md5.c328 uint8_t keyflags = 0; in try_add_key_vrf() local
331 keyflags |= TCP_AO_KEYF_IFINDEX; in try_add_key_vrf()
340 return test_add_key_vrf(sk, ao_password, keyflags, in_addr, prefix, in try_add_key_vrf()
/linux/net/ipv4/
H A Dtcp_ao.c254 if (l3index >= 0 && (key->keyflags & TCP_AO_KEYF_IFINDEX)) { in __tcp_ao_key_cmp()
670 !!(key->keyflags & TCP_AO_KEYF_EXCLUDE_OPT), in tcp_ao_hash_hdr()
727 !!(key->keyflags & TCP_AO_KEYF_EXCLUDE_OPT), in tcp_ao_hash_skb()
1606 if (cmd.keyflags & ~TCP_AO_KEYF_ALL) in tcp_ao_add_cmd()
1614 if (cmd.ifindex && !(cmd.keyflags & TCP_AO_KEYF_IFINDEX)) in tcp_ao_add_cmd()
1618 if (cmd.keyflags & TCP_AO_KEYF_IFINDEX && cmd.ifindex) { in tcp_ao_add_cmd()
1651 if (cmd.keyflags & TCP_AO_KEYF_IFINDEX) { in tcp_ao_add_cmd()
1697 key->keyflags = cmd.keyflags; in tcp_ao_add_cmd()
1821 if (cmd.keyflags & ~TCP_AO_DEL_KEYF_ALL) in tcp_ao_del_cmd()
1829 if (cmd.ifindex && !(cmd.keyflags & TCP_AO_KEYF_IFINDEX)) in tcp_ao_del_cmd()
[all …]
/linux/include/net/
H A Dtcp_ao.h60 u8 keyflags; member