Lines Matching refs:xpl

1384 	struct sadb_x_policy *xpl;
1391 if (len < sizeof(*xpl))
1393 xpl = (struct sadb_x_policy *)(void *)request;
1397 kdebug_sadb_x_policy((struct sadb_ext *)xpl));
1401 if (xpl->sadb_x_policy_type == IPSEC_POLICY_DISCARD
1402 || xpl->sadb_x_policy_type == IPSEC_POLICY_NONE)
1406 if (priv == 0 && xpl->sadb_x_policy_type == IPSEC_POLICY_BYPASS)
1410 if ((newsp = key_msg2sp(xpl, len, &error)) == NULL)
1458 struct sadb_x_policy *xpl;
1467 if (len < sizeof(*xpl))
1469 xpl = (struct sadb_x_policy *)(void *)request;
1472 if (IPSEC_IS_P2ALIGNED(xpl)) {
1475 xpl_unaligned = (__typeof__(xpl_unaligned))xpl;
1476 memcpy(&xpl_aligned_buf, xpl, sizeof(xpl_aligned_buf));
1477 xpl = (__typeof__(xpl))&xpl_aligned_buf;
1487 switch (xpl->sadb_x_policy_dir) {
1496 xpl->sadb_x_policy_dir));
1514 struct sadb_x_policy *xpl;
1525 if (len < sizeof(*xpl))
1527 xpl = (struct sadb_x_policy *)(void *)request;
1530 if (IPSEC_IS_P2ALIGNED(xpl)) {
1533 xpl_unaligned = (__typeof__(xpl_unaligned))xpl;
1534 memcpy(&xpl_aligned_buf, xpl, sizeof(xpl_aligned_buf));
1535 xpl = (__typeof__(xpl))&xpl_aligned_buf;
1545 switch (xpl->sadb_x_policy_dir) {
1554 xpl->sadb_x_policy_dir));
1599 struct sadb_x_policy *xpl;
1608 if (len < sizeof(*xpl))
1610 xpl = (struct sadb_x_policy *)(void *)request;
1613 if (IPSEC_IS_P2ALIGNED(xpl)) {
1616 xpl_unaligned = (__typeof__(xpl_unaligned))xpl;
1617 memcpy(&xpl_aligned_buf, xpl, sizeof(xpl_aligned_buf));
1618 xpl = (__typeof__(xpl))&xpl_aligned_buf;
1628 switch (xpl->sadb_x_policy_dir) {
1637 xpl->sadb_x_policy_dir));
1655 struct sadb_x_policy *xpl;
1664 if (len < sizeof(*xpl))
1666 xpl = (struct sadb_x_policy *)(void *)request;
1669 if (IPSEC_IS_P2ALIGNED(xpl)) {
1672 xpl_unaligned = (__typeof__(xpl_unaligned))xpl;
1673 memcpy(&xpl_aligned_buf, xpl, sizeof(xpl_aligned_buf));
1674 xpl = (__typeof__(xpl))&xpl_aligned_buf;
1684 switch (xpl->sadb_x_policy_dir) {
1693 xpl->sadb_x_policy_dir));