Lines Matching refs:xspi
751 struct xfrm_userspi_info xspi; in xfrm_state_allocspi() member
754 .n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xspi)), in xfrm_state_allocspi()
757 .xspi.info.family = preferred_family, in xfrm_state_allocspi()
759 .xspi.lft.soft_byte_limit = XFRM_INF, in xfrm_state_allocspi()
760 .xspi.lft.hard_byte_limit = XFRM_INF, in xfrm_state_allocspi()
761 .xspi.lft.soft_packet_limit = XFRM_INF, in xfrm_state_allocspi()
762 .xspi.lft.hard_packet_limit = XFRM_INF, in xfrm_state_allocspi()
775 xfrm_mode_parse(&req.xspi.info.mode, &argc, &argv); in xfrm_state_allocspi()
780 xfrm_reqid_parse(&req.xspi.info.reqid, &argc, &argv); in xfrm_state_allocspi()
783 xfrm_seq_parse(&req.xspi.info.seq, &argc, &argv); in xfrm_state_allocspi()
791 if (get_u32(&req.xspi.min, *argv, 0)) in xfrm_state_allocspi()
800 if (get_u32(&req.xspi.max, *argv, 0)) in xfrm_state_allocspi()
809 xfrm_id_parse(&req.xspi.info.saddr, &req.xspi.info.id, in xfrm_state_allocspi()
810 &req.xspi.info.family, 0, &argc, &argv); in xfrm_state_allocspi()
811 if (req.xspi.info.id.spi) { in xfrm_state_allocspi()
816 preferred_family = req.xspi.info.family; in xfrm_state_allocspi()
831 if (req.xspi.min > req.xspi.max) { in xfrm_state_allocspi()
844 req.xspi.min = 0x100; in xfrm_state_allocspi()
845 req.xspi.max = 0x0fffffff; in xfrm_state_allocspi()
850 if (req.xspi.info.id.proto == IPPROTO_COMP) in xfrm_state_allocspi()
851 req.xspi.max = 0xffff; in xfrm_state_allocspi()
866 if (req.xspi.info.family == AF_UNSPEC) in xfrm_state_allocspi()
867 req.xspi.info.family = AF_INET; in xfrm_state_allocspi()