Lines Matching refs:xpl0

1872 	struct sadb_x_policy *xpl0,  in key_msg2sp()  argument
1881 if (xpl0 == NULL) { in key_msg2sp()
1884 if (len < sizeof(*xpl0)) { in key_msg2sp()
1887 if (len != PFKEY_EXTLEN(xpl0)) { in key_msg2sp()
1898 newsp->spidx.dir = xpl0->sadb_x_policy_dir; in key_msg2sp()
1899 newsp->policy = xpl0->sadb_x_policy_type; in key_msg2sp()
1902 switch (xpl0->sadb_x_policy_type) { in key_msg2sp()
1918 if (PFKEY_EXTLEN(xpl0) < sizeof(*xpl0)) { in key_msg2sp()
1926 tlen = PFKEY_EXTLEN(xpl0) - sizeof(*xpl0); in key_msg2sp()
1927 xisr = (struct sadb_x_ipsecrequest *)(xpl0 + 1); in key_msg2sp()
2336 struct sadb_x_policy *xpl0, *xpl; in key_spdadd() local
2409 xpl0 = (struct sadb_x_policy *)(void *)mhp->ext[SADB_X_EXT_POLICY]; in key_spdadd()
2433 switch (xpl0->sadb_x_policy_dir) { in key_spdadd()
2445 if (xpl0->sadb_x_policy_type == IPSEC_POLICY_ENTRUST in key_spdadd()
2446 || xpl0->sadb_x_policy_type == IPSEC_POLICY_BYPASS) { in key_spdadd()
2453 && xpl0->sadb_x_policy_type == IPSEC_POLICY_IPSEC in key_spdadd()
2454 && mhp->extlen[SADB_X_EXT_POLICY] <= sizeof(*xpl0)) { in key_spdadd()
2475 KEY_SETSECSPIDX(xpl0->sadb_x_policy_dir, in key_spdadd()
2516 if ((newsp = key_msg2sp(xpl0, PFKEY_EXTLEN(xpl0), &error)) == NULL) { in key_spdadd()
2534 KEY_SETSECSPIDX(xpl0->sadb_x_policy_dir, in key_spdadd()
2747 struct sadb_x_policy *xpl0; in key_spddelete() local
2798 xpl0 = (struct sadb_x_policy *)(void *)mhp->ext[SADB_X_EXT_POLICY]; in key_spddelete()
2802 switch (xpl0->sadb_x_policy_dir) { in key_spddelete()
2820 KEY_SETSECSPIDX(xpl0->sadb_x_policy_dir, in key_spddelete()
2851 xpl0->sadb_x_policy_id = sp->id; in key_spddelete()