Searched refs:xpl (Results 1 – 4 of 4) sorted by relevance
97 struct sadb_x_policy *xpl = policy; local113 if (xpl->sadb_x_policy_exttype != SADB_X_EXT_POLICY) {123 if (xpl->sadb_x_policy_priority == 0)129 else if (xpl->sadb_x_policy_priority < 132 priority_offset = xpl->sadb_x_policy_priority - PRIORITY_HIGH;135 else if (xpl->sadb_x_policy_priority >= 137 xpl->sadb_x_policy_priority < 140 priority_offset = xpl->sadb_x_policy_priority - PRIORITY_DEFAULT;145 priority_offset = xpl->sadb_x_policy_priority - PRIORITY_LOW;162 switch (xpl->sadb_x_policy_dir) {[all …]
441 struct sadb_x_policy *xpl = (void *)ext; local453 xpl->sadb_x_policy_type, xpl->sadb_x_policy_dir,455 xpl->sadb_x_policy_id, xpl->sadb_x_policy_priority);457 xpl->sadb_x_policy_id);460 if (xpl->sadb_x_policy_type == IPSEC_POLICY_IPSEC) {464 tlen = PFKEY_UNUNIT64(xpl->sadb_x_policy_len) - sizeof(*xpl);465 xisr = (void *)(xpl + 1);
1738 struct sadb_x_policy xpl; local1745 + sizeof(xpl);1760 if (p + sizeof(xpl) != ep) {1764 memset(&xpl, 0, sizeof(xpl));1765 xpl.sadb_x_policy_len = PFKEY_UNIT64(sizeof(xpl));1766 xpl.sadb_x_policy_exttype = SADB_X_EXT_POLICY;1767 xpl.sadb_x_policy_id = spid;1768 memcpy(p, &xpl, sizeof(xpl));
1639 struct sadb_x_policy *xpl; local1666 xpl = (struct sadb_x_policy *)mhp[SADB_X_EXT_POLICY];1687 if (xpl->sadb_x_policy_type != IPSEC_POLICY_IPSEC) {1749 iph2[0] = getph2byid(src, dst, xpl->sadb_x_policy_id);1762 sp_out = getspbyspid(xpl->sadb_x_policy_id);1765 xpl->sadb_x_policy_id);1817 iph2[n]->spid = xpl->sadb_x_policy_id;2017 struct sadb_x_policy *xpl; local2063 xpl = (struct sadb_x_policy *)policy;2064 xpl->sadb_x_policy_len = PFKEY_UNIT64(policylen);[all …]