Searched refs:xpl (Results 1 - 5 of 5) sorted by relevance
/freebsd-11.0-release/lib/libipsec/ |
H A D | ipsec_dump_policy.c | 75 struct sadb_x_policy *xpl = (struct sadb_x_policy *)policy; local 85 if (xpl->sadb_x_policy_exttype != SADB_X_EXT_POLICY) { 94 switch (xpl->sadb_x_policy_dir) { 104 switch (xpl->sadb_x_policy_type) { 116 buflen = strlen(ipsp_dir_strs[xpl->sadb_x_policy_dir]) 118 + strlen(ipsp_policy_strs[xpl->sadb_x_policy_type]) 125 snprintf(buf, buflen, "%s %s", ipsp_dir_strs[xpl->sadb_x_policy_dir], 126 ipsp_policy_strs[xpl->sadb_x_policy_type]); 128 if (xpl->sadb_x_policy_type != IPSEC_POLICY_IPSEC) { 134 off = sizeof(*xpl); [all...] |
H A D | pfkey.c | 1530 struct sadb_x_policy xpl; local 1537 + sizeof(xpl); 1552 if (p + sizeof(xpl) != ep) { 1556 memset(&xpl, 0, sizeof(xpl)); 1557 xpl.sadb_x_policy_len = PFKEY_UNIT64(sizeof(xpl)); 1558 xpl.sadb_x_policy_exttype = SADB_X_EXT_POLICY; 1559 xpl.sadb_x_policy_id = spid; 1560 memcpy(p, &xpl, sizeo [all...] |
/freebsd-11.0-release/sys/netipsec/ |
H A D | ipsec.c | 989 struct sadb_x_policy *xpl; local 996 if (len < sizeof(*xpl)) 998 xpl = (struct sadb_x_policy *)request; 1002 kdebug_sadb_x_policy((struct sadb_ext *)xpl)); 1006 if (xpl->sadb_x_policy_type == IPSEC_POLICY_DISCARD 1007 || xpl->sadb_x_policy_type == IPSEC_POLICY_NONE) 1011 if (cred != NULL && xpl->sadb_x_policy_type == IPSEC_POLICY_BYPASS) { 1018 if ((newsp = key_msg2sp(xpl, len, &error)) == NULL) 1035 struct sadb_x_policy *xpl; local 1041 if (len < sizeof(*xpl)) 1066 struct sadb_x_policy *xpl; local [all...] |
H A D | key_debug.c | 395 struct sadb_x_policy *xpl = (struct sadb_x_policy *)ext; local 403 xpl->sadb_x_policy_type, xpl->sadb_x_policy_dir, 404 xpl->sadb_x_policy_id); 406 if (xpl->sadb_x_policy_type == IPSEC_POLICY_IPSEC) { 410 tlen = PFKEY_UNUNIT64(xpl->sadb_x_policy_len) - sizeof(*xpl); 411 xisr = (struct sadb_x_ipsecrequest *)(xpl + 1);
|
H A D | key.c | 1692 struct sadb_x_policy *xpl; local 1706 xpl = mtod(m, struct sadb_x_policy *); 1707 bzero(xpl, tlen); 1709 xpl->sadb_x_policy_len = PFKEY_UNIT64(tlen); 1710 xpl->sadb_x_policy_exttype = SADB_X_EXT_POLICY; 1711 xpl->sadb_x_policy_type = sp->policy; 1712 xpl->sadb_x_policy_dir = sp->spidx.dir; 1713 xpl->sadb_x_policy_id = sp->id; 1714 xpl->sadb_x_policy_priority = sp->priority; 1715 p = (caddr_t)xpl 1842 struct sadb_x_policy *xpl0, *xpl; local [all...] |
Completed in 70 milliseconds