• Home
  • Raw
  • Download

Lines Matching refs:daddr

55 					 const xfrm_address_t *daddr,  in xfrm_dst_hash()  argument
60 return __xfrm_dst_hash(daddr, saddr, reqid, family, net->xfrm.state_hmask); in xfrm_dst_hash()
64 const xfrm_address_t *daddr, in xfrm_src_hash() argument
68 return __xfrm_src_hash(daddr, saddr, family, net->xfrm.state_hmask); in xfrm_src_hash()
72 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, in xfrm_spi_hash() argument
75 return __xfrm_spi_hash(daddr, spi, proto, family, net->xfrm.state_hmask); in xfrm_spi_hash()
90 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
95 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr, in xfrm_hash_transfer()
101 h = __xfrm_spi_hash(&x->id.daddr, x->id.spi, in xfrm_hash_transfer()
653 const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_init_tempstate() argument
667 afinfo->init_temprop(x, tmpl, daddr, saddr); in xfrm_init_tempstate()
673 const xfrm_address_t *daddr, in __xfrm_state_lookup() argument
677 unsigned int h = xfrm_spi_hash(net, daddr, spi, proto, family); in __xfrm_state_lookup()
684 !xfrm_addr_equal(&x->id.daddr, daddr, family)) in __xfrm_state_lookup()
698 const xfrm_address_t *daddr, in __xfrm_state_lookup_byaddr() argument
702 unsigned int h = xfrm_src_hash(net, daddr, saddr, family); in __xfrm_state_lookup_byaddr()
708 !xfrm_addr_equal(&x->id.daddr, daddr, family) || in __xfrm_state_lookup_byaddr()
729 return __xfrm_state_lookup(net, mark, &x->id.daddr, in __xfrm_state_locate()
733 &x->id.daddr, in __xfrm_state_locate()
784 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_state_find() argument
806 h = xfrm_dst_hash(net, daddr, saddr, tmpl->reqid, encap_family); in xfrm_state_find()
812 xfrm_state_addr_check(x, daddr, saddr, encap_family) && in xfrm_state_find()
822 h_wildcard = xfrm_dst_hash(net, daddr, &saddr_wildcard, tmpl->reqid, encap_family); in xfrm_state_find()
828 xfrm_addr_equal(&x->id.daddr, daddr, encap_family) && in xfrm_state_find()
840 (x0 = __xfrm_state_lookup(net, mark, daddr, tmpl->id.spi, in xfrm_state_find()
864 xfrm_init_tempstate(x, fl, tmpl, daddr, saddr, family); in xfrm_state_find()
880 h = xfrm_src_hash(net, daddr, saddr, encap_family); in xfrm_state_find()
883 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, encap_family); in xfrm_state_find()
924 xfrm_address_t *daddr, xfrm_address_t *saddr, in xfrm_stateonly_find() argument
931 h = xfrm_dst_hash(net, daddr, saddr, reqid, family); in xfrm_stateonly_find()
937 xfrm_state_addr_check(x, daddr, saddr, family) && in xfrm_stateonly_find()
984 h = xfrm_dst_hash(net, &x->id.daddr, &x->props.saddr, in __xfrm_state_insert()
988 h = xfrm_src_hash(net, &x->id.daddr, &x->props.saddr, x->props.family); in __xfrm_state_insert()
992 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, in __xfrm_state_insert()
1017 h = xfrm_dst_hash(net, &xnew->id.daddr, &xnew->props.saddr, reqid, family); in __xfrm_state_bump_genids()
1022 xfrm_addr_equal(&x->id.daddr, &xnew->id.daddr, family) && in __xfrm_state_bump_genids()
1044 const xfrm_address_t *daddr, in __find_acq_core() argument
1048 unsigned int h = xfrm_dst_hash(net, daddr, saddr, reqid, family); in __find_acq_core()
1060 !xfrm_addr_equal(&x->id.daddr, daddr, family) || in __find_acq_core()
1075 x->sel.daddr.a4 = daddr->a4; in __find_acq_core()
1080 x->id.daddr.a4 = daddr->a4; in __find_acq_core()
1084 x->sel.daddr.in6 = daddr->in6; in __find_acq_core()
1089 x->id.daddr.in6 = daddr->in6; in __find_acq_core()
1105 h = xfrm_src_hash(net, daddr, saddr, family); in __find_acq_core()
1144 !xfrm_addr_equal(&x1->id.daddr, &x->id.daddr, family))) { in xfrm_state_add()
1153 &x->id.daddr, &x->props.saddr, 0); in xfrm_state_add()
1276 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr, in xfrm_migrate_state_find()
1291 if (!xfrm_addr_equal(&x->id.daddr, &m->old_daddr, in xfrm_migrate_state_find()
1316 memcpy(&xc->id.daddr, &m->new_daddr, sizeof(xc->id.daddr)); in xfrm_state_migrate()
1320 if (xfrm_addr_equal(&x->id.daddr, &m->new_daddr, m->new_family)) { in xfrm_state_migrate()
1432 xfrm_state_lookup(struct net *net, u32 mark, const xfrm_address_t *daddr, __be32 spi, in xfrm_state_lookup() argument
1438 x = __xfrm_state_lookup(net, mark, daddr, spi, proto, family); in xfrm_state_lookup()
1446 const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_state_lookup_byaddr() argument
1452 x = __xfrm_state_lookup_byaddr(net, mark, daddr, saddr, proto, family); in xfrm_state_lookup_byaddr()
1460 u8 proto, const xfrm_address_t *daddr, in xfrm_find_acq() argument
1466 x = __find_acq_core(net, mark, family, mode, reqid, proto, daddr, saddr, create); in xfrm_find_acq()
1603 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, minspi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1613 x0 = xfrm_state_lookup(net, mark, &x->id.daddr, htonl(spi), x->id.proto, x->props.family); in xfrm_alloc_spi()
1623 h = xfrm_spi_hash(net, &x->id.daddr, x->id.spi, x->id.proto, x->props.family); in xfrm_alloc_spi()
1648 addr_match(&x->id.daddr, &filter->daddr, in __xfrm_state_filter_match()
2199 &x->props.saddr.a4, &x->id.daddr.a4); in xfrm_audit_helper_sainfo()
2203 x->props.saddr.a6, x->id.daddr.a6); in xfrm_audit_helper_sainfo()
2220 &iph4->saddr, &iph4->daddr); in xfrm_audit_helper_pktinfo()
2226 &iph6->saddr, &iph6->daddr, in xfrm_audit_helper_pktinfo()