Searched refs:xfrm_sock (Results 1 – 1 of 1) sorted by relevance
/Linux-v5.10/tools/testing/selftests/net/ |
D | ipsec.c | 926 static int xfrm_state_add(int xfrm_sock, uint32_t seq, uint32_t spi, in xfrm_state_add() argument 969 if (send(xfrm_sock, &req, req.nh.nlmsg_len, 0) < 0) { in xfrm_state_add() 974 return netlink_check_answer(xfrm_sock); in xfrm_state_add() 1015 static int xfrm_state_check(int xfrm_sock, uint32_t seq, uint32_t spi, in xfrm_state_check() argument 1052 if (send(xfrm_sock, &req, req.nh.nlmsg_len, 0) < 0) { in xfrm_state_check() 1058 if (recv(xfrm_sock, &answer, sizeof(answer), 0) < 0) { in xfrm_state_check() 1078 static int xfrm_set(int xfrm_sock, uint32_t *seq, in xfrm_set() argument 1085 err = xfrm_state_add(xfrm_sock, (*seq)++, gen_spi(src), src, dst, desc); in xfrm_set() 1091 err = xfrm_state_add(xfrm_sock, (*seq)++, gen_spi(src), dst, src, desc); in xfrm_set() 1098 err = xfrm_state_check(xfrm_sock, (*seq)++, gen_spi(src), src, dst, desc); in xfrm_set() [all …]
|