• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/xfrm/

Lines Matching refs:saddr

63 					 xfrm_address_t *saddr,
67 return __xfrm_dst_hash(daddr, saddr, reqid, family, xfrm_state_hmask);
71 xfrm_address_t *saddr,
74 return __xfrm_src_hash(daddr, saddr, family, xfrm_state_hmask);
95 h = __xfrm_dst_hash(&x->id.daddr, &x->props.saddr,
100 h = __xfrm_src_hash(&x->id.daddr, &x->props.saddr,
480 xfrm_address_t *daddr, xfrm_address_t *saddr,
486 afinfo->init_tempsel(x, fl, tmpl, daddr, saddr);
523 static struct xfrm_state *__xfrm_state_lookup_byaddr(xfrm_address_t *daddr, xfrm_address_t *saddr, u8 proto, unsigned short family)
525 unsigned int h = xfrm_src_hash(daddr, saddr, family);
537 x->props.saddr.a4 != saddr->a4)
544 !ipv6_addr_equal((struct in6_addr *)saddr,
546 x->props.saddr.a6))
566 &x->props.saddr,
579 xfrm_state_find(xfrm_address_t *daddr, xfrm_address_t *saddr,
584 unsigned int h = xfrm_dst_hash(daddr, saddr, tmpl->reqid, family);
596 xfrm_state_addr_check(x, daddr, saddr, family) &&
649 xfrm_init_tempsel(x, fl, tmpl, daddr, saddr, family);
662 h = xfrm_src_hash(daddr, saddr, family);
695 h = xfrm_dst_hash(&x->id.daddr, &x->props.saddr,
699 h = xfrm_src_hash(&x->id.daddr, &x->props.saddr, x->props.family);
729 h = xfrm_dst_hash(&xnew->id.daddr, &xnew->props.saddr, reqid, family);
734 !xfrm_addr_cmp(&x->props.saddr, &xnew->props.saddr, family))
749 static struct xfrm_state *__find_acq_core(unsigned short family, u8 mode, u32 reqid, u8 proto, xfrm_address_t *daddr, xfrm_address_t *saddr, int create)
751 unsigned int h = xfrm_dst_hash(daddr, saddr, reqid, family);
767 x->props.saddr.a4 != saddr->a4)
774 x->props.saddr.a6,
775 (struct in6_addr *)saddr))
792 x->sel.saddr.a4 = saddr->a4;
795 x->props.saddr.a4 = saddr->a4;
802 ipv6_addr_copy((struct in6_addr *)x->sel.saddr.a6,
803 (struct in6_addr *)saddr);
806 ipv6_addr_copy((struct in6_addr *)x->props.saddr.a6,
807 (struct in6_addr *)saddr);
823 h = xfrm_src_hash(daddr, saddr, family);
868 &x->id.daddr, &x->props.saddr, 0);
901 x->props.saddr = orig->props.saddr;
982 xfrm_addr_cmp(&x->props.saddr, &m->old_saddr,
997 xfrm_addr_cmp(&x->props.saddr, &m->old_saddr,
1020 memcpy(&xc->props.saddr, &m->new_saddr, sizeof(xc->props.saddr));
1166 xfrm_state_lookup_byaddr(xfrm_address_t *daddr, xfrm_address_t *saddr,
1172 x = __xfrm_state_lookup_byaddr(daddr, saddr, proto, family);
1180 xfrm_address_t *daddr, xfrm_address_t *saddr,
1186 x = __find_acq_core(family, mode, reqid, proto, daddr, saddr, create);