Lines Matching refs:spi
926 static int xfrm_state_add(int xfrm_sock, uint32_t seq, uint32_t spi, in xfrm_state_add() argument
952 req.info.id.spi = spi; in xfrm_state_add()
977 static bool xfrm_usersa_found(struct xfrm_usersa_info *info, uint32_t spi, in xfrm_usersa_found() argument
992 if (info->id.spi != spi || info->id.proto != desc->proto) in xfrm_usersa_found()
1015 static int xfrm_state_check(int xfrm_sock, uint32_t seq, uint32_t spi, in xfrm_state_check() argument
1072 if (xfrm_usersa_found(&answer.info, spi, src, dst, desc)) in xfrm_state_check()
1108 static int xfrm_policy_add(int xfrm_sock, uint32_t seq, uint32_t spi, in xfrm_policy_add() argument
1144 tmpl.id.spi = spi; in xfrm_policy_add()
1234 static int xfrm_state_del(int xfrm_sock, uint32_t seq, uint32_t spi, in xfrm_state_del() argument
1254 req.id.spi = spi; in xfrm_state_del()
1286 uint32_t spi, uint8_t proto) in xfrm_state_allocspi() argument
1290 struct xfrm_userspi_info spi; in xfrm_state_allocspi() member
1301 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.spi)); in xfrm_state_allocspi()
1306 req.spi.info.family = AF_INET; in xfrm_state_allocspi()
1307 req.spi.min = spi; in xfrm_state_allocspi()
1308 req.spi.max = spi; in xfrm_state_allocspi()
1309 req.spi.info.id.proto = proto; in xfrm_state_allocspi()
1320 uint32_t new_spi = htonl(answer.info.id.spi); in xfrm_state_allocspi()
1322 if (new_spi != spi) { in xfrm_state_allocspi()
1324 new_spi, spi); in xfrm_state_allocspi()
1478 req.expire.state.id.spi = gen_spi(src); in xfrm_expire_state()