Searched refs:xpinfo (Results 1 – 3 of 3) sorted by relevance
/external/iproute2/ip/ |
D | xfrm_policy.c | 231 struct xfrm_userpolicy_info xpinfo; in xfrm_policy_modify() member 246 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpinfo)); in xfrm_policy_modify() 249 req.xpinfo.sel.family = preferred_family; in xfrm_policy_modify() 251 req.xpinfo.lft.soft_byte_limit = XFRM_INF; in xfrm_policy_modify() 252 req.xpinfo.lft.hard_byte_limit = XFRM_INF; in xfrm_policy_modify() 253 req.xpinfo.lft.soft_packet_limit = XFRM_INF; in xfrm_policy_modify() 254 req.xpinfo.lft.hard_packet_limit = XFRM_INF; in xfrm_policy_modify() 263 xfrm_policy_dir_parse(&req.xpinfo.dir, &argc, &argv); in xfrm_policy_modify() 268 if (get_u32(&req.xpinfo.index, *argv, 0)) in xfrm_policy_modify() 280 req.xpinfo.action = XFRM_POLICY_ALLOW; in xfrm_policy_modify() [all …]
|
D | ipxfrm.c | 852 void xfrm_policy_info_print(struct xfrm_userpolicy_info *xpinfo, in xfrm_policy_info_print() argument 860 xfrm_selector_print(&xpinfo->sel, preferred_family, fp, title); in xfrm_policy_info_print() 868 switch (xpinfo->dir) { in xfrm_policy_info_print() 879 fprintf(fp, "%u", xpinfo->dir); in xfrm_policy_info_print() 884 switch (xpinfo->action) { in xfrm_policy_info_print() 893 fprintf(fp, "action %u ", xpinfo->action); in xfrm_policy_info_print() 898 fprintf(fp, "index %u ", xpinfo->index); in xfrm_policy_info_print() 899 fprintf(fp, "priority %u ", xpinfo->priority); in xfrm_policy_info_print() 914 fprintf(fp, "share %s ", strxf_share(xpinfo->share)); in xfrm_policy_info_print() 916 if (show_stats > 0 || xpinfo->flags) { in xfrm_policy_info_print() [all …]
|
D | xfrm.h | 90 struct xfrm_userpolicy_info xpinfo; member 146 void xfrm_policy_info_print(struct xfrm_userpolicy_info *xpinfo,
|