Lines Matching defs:daddr

42    1. Hash table by (spi,daddr,ah/esp) to find SA by SPI. (input,ctl)
43 2. Hash table by (daddr,family,reqid) to find what SAs exist for given
59 const xfrm_address_t *daddr,
64 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask);
68 const xfrm_address_t *daddr,
72 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask);
76 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr,
79 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask);
119 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr,
124 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr,
130 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi,
906 sel->daddr.a4 = fl4->daddr;
925 *(struct in6_addr *)&sel->daddr = fl6->daddr;
941 const xfrm_address_t *daddr, const xfrm_address_t *saddr,
957 if (x->id.daddr.a4 == 0)
958 x->id.daddr.a4 = daddr->a4;
964 if (ipv6_addr_any((struct in6_addr *)&x->id.daddr))
965 memcpy(&x->id.daddr, daddr, sizeof(x->sel.daddr));
978 const xfrm_address_t *daddr,
983 unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family);
1007 !xfrm_addr_equal(&x->id.daddr, daddr, family))
1021 const xfrm_address_t *daddr,
1025 unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family);
1032 !xfrm_addr_equal(&x->id.daddr, daddr, family))
1046 const xfrm_address_t *daddr,
1050 unsigned int h = xfrm_src_hash(net, daddr, saddr, family);
1056 !xfrm_addr_equal(&x->id.daddr, daddr, family) ||
1077 return __xfrm_state_lookup(net, mark, &x->id.daddr,
1081 &x->id.daddr,
1137 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr,
1159 h = xfrm_dst_hash(net, daddr, saddr, tmpl->reqid, encap_family);
1183 xfrm_state_addr_check(x, daddr, saddr, encap_family) &&
1193 h_wildcard = xfrm_dst_hash(net, daddr, &saddr_wildcard, tmpl->reqid, encap_family);
1217 xfrm_addr_equal(&x->id.daddr, daddr, encap_family) &&
1229 (x0 = __xfrm_state_lookup_all(net, mark, daddr,
1255 xfrm_init_tempstate(x, fl, tmpl, daddr, saddr, family);
1299 h = xfrm_src_hash(net, daddr, saddr, encap_family);
1304 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, encap_family);
1363 xfrm_address_t *daddr, xfrm_address_t *saddr,
1370 h = xfrm_dst_hash(net, daddr, saddr, reqid, family);
1377 xfrm_state_addr_check(x, daddr, saddr, family) &&
1424 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr,
1429 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family);
1434 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto,
1468 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family);
1474 xfrm_addr_equal(&x->id.daddr, &xnew->id.daddr, family) &&
1496 const xfrm_address_t *daddr,
1500 unsigned int h = xfrm_dst_hash(net, daddr, saddr, reqid, family);
1512 !xfrm_addr_equal(&x->id.daddr, daddr, family) ||
1527 x->sel.daddr.a4 = daddr->a4;
1532 x->id.daddr.a4 = daddr->a4;
1536 x->sel.daddr.in6 = daddr->in6;
1541 x->id.daddr.in6 = daddr->in6;
1561 h = xfrm_src_hash(net, daddr, saddr, family);
1601 !xfrm_addr_equal(&x1->id.daddr, &x->id.daddr, family))) {
1610 &x->id.daddr, &x->props.saddr, 0);
1775 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr,
1792 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr,
1823 memcpy(&xc->id.daddr, &m->new_daddr, sizeof(xc->id.daddr));
1827 if (xfrm_addr_equal(&x->id.daddr, &m->new_daddr, m->new_family)) {
1961 xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi,
1967 x = __xfrm_state_lookup(net, mark, daddr, spi, proto, family);
1975 const xfrm_address_t *daddr, const xfrm_address_t *saddr,
1981 x = __xfrm_state_lookup_byaddr(net, mark, daddr, saddr, proto, family);
1989 u32 if_id, u8 proto, const xfrm_address_t *daddr,
1995 x = __find_acq_core(net, mark, family, mode, reqid, if_id, proto, daddr, saddr, create);
2225 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family);
2236 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family);
2247 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family);
2275 addr_match(&x->id.daddr, &filter->daddr,
2950 &x->props.saddr.a4, &x->id.daddr.a4);
2954 x->props.saddr.a6, x->id.daddr.a6);
2971 &iph4->saddr, &iph4->daddr);
2977 &iph6->saddr, &iph6->daddr,