• Home
  • Raw
  • Download

Lines Matching refs:sel

878 __xfrm4_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl)  in __xfrm4_init_tempsel()  argument
882 sel->daddr.a4 = fl4->daddr; in __xfrm4_init_tempsel()
883 sel->saddr.a4 = fl4->saddr; in __xfrm4_init_tempsel()
884 sel->dport = xfrm_flowi_dport(fl, &fl4->uli); in __xfrm4_init_tempsel()
885 sel->dport_mask = htons(0xffff); in __xfrm4_init_tempsel()
886 sel->sport = xfrm_flowi_sport(fl, &fl4->uli); in __xfrm4_init_tempsel()
887 sel->sport_mask = htons(0xffff); in __xfrm4_init_tempsel()
888 sel->family = AF_INET; in __xfrm4_init_tempsel()
889 sel->prefixlen_d = 32; in __xfrm4_init_tempsel()
890 sel->prefixlen_s = 32; in __xfrm4_init_tempsel()
891 sel->proto = fl4->flowi4_proto; in __xfrm4_init_tempsel()
892 sel->ifindex = fl4->flowi4_oif; in __xfrm4_init_tempsel()
896 __xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_init_tempsel() argument
901 *(struct in6_addr *)&sel->daddr = fl6->daddr; in __xfrm6_init_tempsel()
902 *(struct in6_addr *)&sel->saddr = fl6->saddr; in __xfrm6_init_tempsel()
903 sel->dport = xfrm_flowi_dport(fl, &fl6->uli); in __xfrm6_init_tempsel()
904 sel->dport_mask = htons(0xffff); in __xfrm6_init_tempsel()
905 sel->sport = xfrm_flowi_sport(fl, &fl6->uli); in __xfrm6_init_tempsel()
906 sel->sport_mask = htons(0xffff); in __xfrm6_init_tempsel()
907 sel->family = AF_INET6; in __xfrm6_init_tempsel()
908 sel->prefixlen_d = 128; in __xfrm6_init_tempsel()
909 sel->prefixlen_s = 128; in __xfrm6_init_tempsel()
910 sel->proto = fl6->flowi6_proto; in __xfrm6_init_tempsel()
911 sel->ifindex = fl6->flowi6_oif; in __xfrm6_init_tempsel()
922 __xfrm4_init_tempsel(&x->sel, fl); in xfrm_init_tempstate()
925 __xfrm6_init_tempsel(&x->sel, fl); in xfrm_init_tempstate()
941 memcpy(&x->id.daddr, daddr, sizeof(x->sel.daddr)); in xfrm_init_tempstate()
1044 if ((x->sel.family && in xfrm_state_look_at()
1045 (x->sel.family != family || in xfrm_state_look_at()
1046 !xfrm_selector_match(&x->sel, fl, family))) || in xfrm_state_look_at()
1060 if ((!x->sel.family || in xfrm_state_look_at()
1061 (x->sel.family == family && in xfrm_state_look_at()
1062 xfrm_selector_match(&x->sel, fl, family))) && in xfrm_state_look_at()
1379 x->sel.daddr.a4 = daddr->a4; in __find_acq_core()
1380 x->sel.saddr.a4 = saddr->a4; in __find_acq_core()
1381 x->sel.prefixlen_d = 32; in __find_acq_core()
1382 x->sel.prefixlen_s = 32; in __find_acq_core()
1388 x->sel.daddr.in6 = daddr->in6; in __find_acq_core()
1389 x->sel.saddr.in6 = saddr->in6; in __find_acq_core()
1390 x->sel.prefixlen_d = 128; in __find_acq_core()
1391 x->sel.prefixlen_s = 128; in __find_acq_core()
1515 memcpy(&x->sel, &orig->sel, sizeof(x->sel)); in xfrm_state_clone()
1749 if (!use_spi && memcmp(&x1->sel, &x->sel, sizeof(x1->sel))) in xfrm_state_update()
1750 memcpy(&x1->sel, &x->sel, sizeof(x1->sel)); in xfrm_state_update()
2303 int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type, in km_migrate() argument
2315 ret = km->migrate(sel, dir, type, m, num_migrate, k, in km_migrate()
2327 int km_report(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr) in km_report() argument
2336 ret = km->report(net, proto, sel, addr); in km_report()
2631 if (x->sel.family != AF_UNSPEC) { in __xfrm_init_state()
2632 inner_mode = xfrm_get_mode(x->props.mode, x->sel.family); in __xfrm_init_state()
2637 family != x->sel.family) in __xfrm_init_state()