Home
last modified time | relevance | path

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

/titanic_50/usr/src/uts/common/inet/ip/
H A Dspdsock.c1580 const ipsec_selkey_t *selkey = &sel->ipsl_key; in spdsock_encode_sel() local
1582 if (selkey->ipsl_valid & IPSL_PROTOCOL) in spdsock_encode_sel()
1583 offset = spdsock_encode_proto(base, offset, selkey->ipsl_proto); in spdsock_encode_sel()
1584 if (selkey->ipsl_valid & IPSL_LOCAL_PORT) in spdsock_encode_sel()
1586 selkey->ipsl_lport); in spdsock_encode_sel()
1587 if (selkey->ipsl_valid & IPSL_REMOTE_PORT) in spdsock_encode_sel()
1589 selkey->ipsl_rport); in spdsock_encode_sel()
1590 if (selkey->ipsl_valid & IPSL_REMOTE_ADDR) in spdsock_encode_sel()
1592 selkey, &selkey->ipsl_remote, selkey->ipsl_remote_pfxlen); in spdsock_encode_sel()
1593 if (selkey->ipsl_valid & IPSL_LOCAL_ADDR) in spdsock_encode_sel()
[all …]
H A Dspd.c3125 selkey_hash(const ipsec_selkey_t *selkey, netstack_t *ns) in selkey_hash() argument
3127 uint32_t valid = selkey->ipsl_valid; in selkey_hash()
3134 if (selkey->ipsl_remote_pfxlen == 32) { in selkey_hash()
3135 return (IPSEC_IPV4_HASH(selkey->ipsl_remote.ipsad_v4, in selkey_hash()
3140 if (selkey->ipsl_remote_pfxlen == 128) { in selkey_hash()
3141 return (IPSEC_IPV6_HASH(selkey->ipsl_remote.ipsad_v6, in selkey_hash()
3366 ipsec_find_sel(ipsec_selkey_t *selkey, netstack_t *ns) in ipsec_find_sel() argument
3375 ASSERT(!(selkey->ipsl_valid & IPSL_IPV4) ^ in ipsec_find_sel()
3376 !(selkey->ipsl_valid & IPSL_IPV6)); in ipsec_find_sel()
3378 hval = selkey_hash(selkey, ns); in ipsec_find_sel()
[all …]