Lines Matching refs:xpl
97 struct sadb_x_policy *xpl = policy; local
113 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) {
175 switch (xpl->sadb_x_policy_type) {
187 buflen = strlen(ipsp_dir_strs[xpl->sadb_x_policy_dir])
194 + strlen(ipsp_policy_strs[xpl->sadb_x_policy_type])
205 ipsp_dir_strs[xpl->sadb_x_policy_dir], priority_str, operator,
206 priority_offset, ipsp_policy_strs[xpl->sadb_x_policy_type]);
211 ipsp_dir_strs[xpl->sadb_x_policy_dir], priority_str,
212 ipsp_policy_strs[xpl->sadb_x_policy_type]);
217 ipsp_dir_strs[xpl->sadb_x_policy_dir],
218 ipsp_policy_strs[xpl->sadb_x_policy_type]);
221 snprintf(buf, buflen, "%s %s", ipsp_dir_strs[xpl->sadb_x_policy_dir],
222 ipsp_policy_strs[xpl->sadb_x_policy_type]);
225 if (xpl->sadb_x_policy_type != IPSEC_POLICY_IPSEC) {
231 off = sizeof(*xpl);
232 while (off < PFKEY_EXTLEN(xpl)) {
233 xisr = (void *)((caddr_t)(void *)xpl + off);
238 if (off != PFKEY_EXTLEN(xpl)) {
244 off = sizeof(*xpl);
245 while (off < PFKEY_EXTLEN(xpl)) {
247 xisr = (void *)((caddr_t)(void *)xpl + off);
250 PFKEY_EXTLEN(xpl) - off, withports) == NULL) {