Home
last modified time | relevance | path

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

/external/iproute2/ip/
Dxfrm_policy.c253 struct xfrm_userpolicy_info xpinfo; in xfrm_policy_modify() member
274 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpinfo)); in xfrm_policy_modify()
277 req.xpinfo.sel.family = preferred_family; in xfrm_policy_modify()
279 req.xpinfo.lft.soft_byte_limit = XFRM_INF; in xfrm_policy_modify()
280 req.xpinfo.lft.hard_byte_limit = XFRM_INF; in xfrm_policy_modify()
281 req.xpinfo.lft.soft_packet_limit = XFRM_INF; in xfrm_policy_modify()
282 req.xpinfo.lft.hard_packet_limit = XFRM_INF; in xfrm_policy_modify()
291 xfrm_policy_dir_parse(&req.xpinfo.dir, &argc, &argv); in xfrm_policy_modify()
305 if (get_u32(&req.xpinfo.index, *argv, 0)) in xfrm_policy_modify()
317 req.xpinfo.action = XFRM_POLICY_ALLOW; in xfrm_policy_modify()
[all …]
Dipxfrm.c899 void xfrm_policy_info_print(struct xfrm_userpolicy_info *xpinfo, in xfrm_policy_info_print() argument
907 xfrm_selector_print(&xpinfo->sel, preferred_family, fp, title); in xfrm_policy_info_print()
928 if (xpinfo->dir >= XFRM_POLICY_MAX) { in xfrm_policy_info_print()
929 xpinfo->dir -= XFRM_POLICY_MAX; in xfrm_policy_info_print()
934 switch (xpinfo->dir) { in xfrm_policy_info_print()
945 fprintf(fp, "%u", xpinfo->dir); in xfrm_policy_info_print()
950 switch (xpinfo->action) { in xfrm_policy_info_print()
959 fprintf(fp, "action %u ", xpinfo->action); in xfrm_policy_info_print()
964 fprintf(fp, "index %u ", xpinfo->index); in xfrm_policy_info_print()
965 fprintf(fp, "priority %u ", xpinfo->priority); in xfrm_policy_info_print()
[all …]
Dxfrm.h90 struct xfrm_userpolicy_info xpinfo; member
146 void xfrm_policy_info_print(struct xfrm_userpolicy_info *xpinfo,