Lines Matching defs:daddr

41    1. Hash table by (spi,daddr,ah/esp) to find SA by SPI. (input,ctl)
42 2. Hash table by (daddr,family,reqid) to find what SAs exist for given
58 const xfrm_address_t *daddr,
63 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask);
67 const xfrm_address_t *daddr,
71 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask);
75 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr,
78 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask);
93 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr,
98 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr,
104 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi,
858 sel->daddr.a4 = fl4->daddr;
877 *(struct in6_addr *)&sel->daddr = fl6->daddr;
893 const xfrm_address_t *daddr, const xfrm_address_t *saddr,
909 if (x->id.daddr.a4 == 0)
910 x->id.daddr.a4 = daddr->a4;
916 if (ipv6_addr_any((struct in6_addr *)&x->id.daddr))
917 memcpy(&x->id.daddr, daddr, sizeof(x->sel.daddr));
930 const xfrm_address_t *daddr,
934 unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family);
941 !xfrm_addr_equal(&x->id.daddr, daddr, family))
955 const xfrm_address_t *daddr,
959 unsigned int h = xfrm_src_hash(net, daddr, saddr, family);
965 !xfrm_addr_equal(&x->id.daddr, daddr, family) ||
986 return __xfrm_state_lookup(net, mark, &x->id.daddr,
990 &x->id.daddr,
1046 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr,
1068 h = xfrm_dst_hash(net, daddr, saddr, tmpl->reqid, encap_family);
1075 xfrm_state_addr_check(x, daddr, saddr, encap_family) &&
1085 h_wildcard = xfrm_dst_hash(net, daddr, &saddr_wildcard, tmpl->reqid, encap_family);
1092 xfrm_addr_equal(&x->id.daddr, daddr, encap_family) &&
1104 (x0 = __xfrm_state_lookup(net, mark, daddr, tmpl->id.spi,
1128 xfrm_init_tempstate(x, fl, tmpl, daddr, saddr, family);
1145 h = xfrm_src_hash(net, daddr, saddr, encap_family);
1148 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, encap_family);
1191 xfrm_address_t *daddr, xfrm_address_t *saddr,
1198 h = xfrm_dst_hash(net, daddr, saddr, reqid, family);
1205 xfrm_state_addr_check(x, daddr, saddr, family) &&
1252 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr,
1256 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family);
1260 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto,
1286 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family);
1292 xfrm_addr_equal(&x->id.daddr, &xnew->id.daddr, family) &&
1314 const xfrm_address_t *daddr,
1318 unsigned int h = xfrm_dst_hash(net, daddr, saddr, reqid, family);
1330 !xfrm_addr_equal(&x->id.daddr, daddr, family) ||
1345 x->sel.daddr.a4 = daddr->a4;
1350 x->id.daddr.a4 = daddr->a4;
1354 x->sel.daddr.in6 = daddr->in6;
1359 x->id.daddr.in6 = daddr->in6;
1378 h = xfrm_src_hash(net, daddr, saddr, family);
1417 !xfrm_addr_equal(&x1->id.daddr, &x->id.daddr, family))) {
1426 &x->id.daddr, &x->props.saddr, 0);
1591 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr,
1608 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr,
1639 memcpy(&xc->id.daddr, &m->new_daddr, sizeof(xc->id.daddr));
1643 if (xfrm_addr_equal(&x->id.daddr, &m->new_daddr, m->new_family)) {
1775 xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi,
1781 x = __xfrm_state_lookup(net, mark, daddr, spi, proto, family);
1789 const xfrm_address_t *daddr, const xfrm_address_t *saddr,
1795 x = __xfrm_state_lookup_byaddr(net, mark, daddr, saddr, proto, family);
1803 u32 if_id, u8 proto, const xfrm_address_t *daddr,
1809 x = __find_acq_core(net, mark, family, mode, reqid, if_id, proto, daddr, saddr, create);
2033 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family);
2043 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family);
2054 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family);
2079 addr_match(&x->id.daddr, &filter->daddr,
2738 &x->props.saddr.a4, &x->id.daddr.a4);
2742 x->props.saddr.a6, x->id.daddr.a6);
2759 &iph4->saddr, &iph4->daddr);
2765 &iph6->saddr, &iph6->daddr,