Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/net/
Dipsec.c914 static int xfrm_state_add(int xfrm_sock, uint32_t seq, uint32_t spi, in xfrm_state_add() argument
957 if (send(xfrm_sock, &req, req.nh.nlmsg_len, 0) < 0) { in xfrm_state_add()
962 return netlink_check_answer(xfrm_sock); in xfrm_state_add()
1003 static int xfrm_state_check(int xfrm_sock, uint32_t seq, uint32_t spi, in xfrm_state_check() argument
1040 if (send(xfrm_sock, &req, req.nh.nlmsg_len, 0) < 0) { in xfrm_state_check()
1046 if (recv(xfrm_sock, &answer, sizeof(answer), 0) < 0) { in xfrm_state_check()
1066 static int xfrm_set(int xfrm_sock, uint32_t *seq, in xfrm_set() argument
1073 err = xfrm_state_add(xfrm_sock, (*seq)++, gen_spi(src), src, dst, desc); in xfrm_set()
1079 err = xfrm_state_add(xfrm_sock, (*seq)++, gen_spi(src), dst, src, desc); in xfrm_set()
1086 err = xfrm_state_check(xfrm_sock, (*seq)++, gen_spi(src), src, dst, desc); in xfrm_set()
[all …]