Home
last modified time | relevance | path

Searched refs:xpl0 (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/netipsec/
H A Dkey.c1552 key_msg2sp(struct sadb_x_policy *xpl0, size_t len, int *error) in key_msg2sp() argument
1556 IPSEC_ASSERT(xpl0 != NULL, ("null xpl0")); in key_msg2sp()
1557 IPSEC_ASSERT(len >= sizeof(*xpl0), ("policy too short: %zu", len)); in key_msg2sp()
1559 if (len != PFKEY_EXTLEN(xpl0)) { in key_msg2sp()
1570 newsp->spidx.dir = xpl0->sadb_x_policy_dir; in key_msg2sp()
1571 newsp->policy = xpl0->sadb_x_policy_type; in key_msg2sp()
1572 newsp->priority = xpl0->sadb_x_policy_priority; in key_msg2sp()
1576 switch (xpl0->sadb_x_policy_type) { in key_msg2sp()
1590 if (PFKEY_EXTLEN(xpl0) < sizeof(*xpl0)) { in key_msg2sp()
1598 tlen = PFKEY_EXTLEN(xpl0) - sizeof(*xpl0); in key_msg2sp()
[all …]