Lines Matching defs:xpl
72 const struct sadb_x_policy *xpl = (const struct sadb_x_policy *)policy;
82 if (xpl->sadb_x_policy_exttype != SADB_X_EXT_POLICY) {
91 switch (xpl->sadb_x_policy_dir) {
101 switch (xpl->sadb_x_policy_type) {
113 buflen = strlen(ipsp_dir_strs[xpl->sadb_x_policy_dir])
115 + strlen(ipsp_policy_strs[xpl->sadb_x_policy_type])
122 snprintf(buf, buflen, "%s %s", ipsp_dir_strs[xpl->sadb_x_policy_dir],
123 ipsp_policy_strs[xpl->sadb_x_policy_type]);
125 if (xpl->sadb_x_policy_type != IPSEC_POLICY_IPSEC) {
131 off = sizeof(*xpl);
132 while (off < PFKEY_EXTLEN(xpl)) {
133 xisr = (struct sadb_x_ipsecrequest *)((caddr_t)xpl + off);
138 if (off != PFKEY_EXTLEN(xpl)) {
144 off = sizeof(*xpl);
145 while (off < PFKEY_EXTLEN(xpl)) {
146 xisr = (struct sadb_x_ipsecrequest *)((caddr_t)xpl + off);
149 PFKEY_EXTLEN(xpl) - off) == NULL) {