Home
last modified time | relevance | path

Searched refs:fl (Results 1 – 25 of 42) sorted by relevance

12

/net/ipv6/
Dip6_flowlabel.c67 #define for_each_fl_rcu(hash, fl) \ argument
68 for (fl = rcu_dereference_bh(fl_ht[(hash)]); \
69 fl != NULL; \
70 fl = rcu_dereference_bh(fl->next))
71 #define for_each_fl_continue_rcu(fl) \ argument
72 for (fl = rcu_dereference_bh(fl->next); \
73 fl != NULL; \
74 fl = rcu_dereference_bh(fl->next))
83 struct ip6_flowlabel *fl; in __fl_lookup() local
85 for_each_fl_rcu(FL_HASH(label), fl) { in __fl_lookup()
[all …]
Dxfrm6_state.c24 __xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_init_tempsel() argument
26 const struct flowi6 *fl6 = &fl->u.ip6; in __xfrm6_init_tempsel()
32 sel->dport = xfrm_flowi_dport(fl, &fl6->uli); in __xfrm6_init_tempsel()
34 sel->sport = xfrm_flowi_sport(fl, &fl6->uli); in __xfrm6_init_tempsel()
Dxfrm6_policy.c74 static int xfrm6_get_tos(const struct flowi *fl) in xfrm6_get_tos() argument
101 const struct flowi *fl) in xfrm6_fill_dst() argument
132 _decode_session6(struct sk_buff *skb, struct flowi *fl, int reverse) in _decode_session6() argument
134 struct flowi6 *fl6 = &fl->u.ip6; in _decode_session6()
Dmip6.c211 const struct flowi *fl) in mip6_destopt_reject() argument
215 const struct flowi6 *fl6 = &fl->u.ip6; in mip6_destopt_reject()
249 sel.dport = xfrm_flowi_dport(fl, &fl6->uli); in mip6_destopt_reject()
252 sel.sport = xfrm_flowi_sport(fl, &fl6->uli); in mip6_destopt_reject()
Dnetfilter.c111 struct flowi *fl, bool strict) in nf_ip6_route() argument
123 result = ip6_route_output(net, sk, &fl->u.ip6); in nf_ip6_route()
Dfib6_rules.c115 static int fib6_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) in fib6_rule_match() argument
118 struct flowi6 *fl6 = &fl->u.ip6; in fib6_rule_match()
/net/xfrm/
Dxfrm_policy.c64 __xfrm4_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_selector_match() argument
66 const struct flowi4 *fl4 = &fl->u.ip4; in __xfrm4_selector_match()
70 !((xfrm_flowi_dport(fl, &fl4->uli) ^ sel->dport) & sel->dport_mask) && in __xfrm4_selector_match()
71 !((xfrm_flowi_sport(fl, &fl4->uli) ^ sel->sport) & sel->sport_mask) && in __xfrm4_selector_match()
77 __xfrm6_selector_match(const struct xfrm_selector *sel, const struct flowi *fl) in __xfrm6_selector_match() argument
79 const struct flowi6 *fl6 = &fl->u.ip6; in __xfrm6_selector_match()
83 !((xfrm_flowi_dport(fl, &fl6->uli) ^ sel->dport) & sel->dport_mask) && in __xfrm6_selector_match()
84 !((xfrm_flowi_sport(fl, &fl6->uli) ^ sel->sport) & sel->sport_mask) && in __xfrm6_selector_match()
89 bool xfrm_selector_match(const struct xfrm_selector *sel, const struct flowi *fl, in xfrm_selector_match() argument
94 return __xfrm4_selector_match(sel, fl); in xfrm_selector_match()
[all …]
Dxfrm_state.c658 xfrm_init_tempstate(struct xfrm_state *x, const struct flowi *fl, in xfrm_init_tempstate() argument
666 afinfo->init_tempsel(&x->sel, fl); in xfrm_init_tempstate()
752 const struct flowi *fl, unsigned short family, in xfrm_state_look_at() argument
769 !xfrm_selector_match(&x->sel, fl, x->sel.family)) || in xfrm_state_look_at()
770 !security_xfrm_state_pol_flow_match(x, pol, fl)) in xfrm_state_look_at()
782 if (xfrm_selector_match(&x->sel, fl, x->sel.family) && in xfrm_state_look_at()
783 security_xfrm_state_pol_flow_match(x, pol, fl)) in xfrm_state_look_at()
790 const struct flowi *fl, struct xfrm_tmpl *tmpl, in xfrm_state_find() argument
817 xfrm_state_look_at(pol, x, fl, encap_family, in xfrm_state_find()
833 xfrm_state_look_at(pol, x, fl, encap_family, in xfrm_state_find()
[all …]
/net/ipv4/
Dxfrm4_state.c25 __xfrm4_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl) in __xfrm4_init_tempsel() argument
27 const struct flowi4 *fl4 = &fl->u.ip4; in __xfrm4_init_tempsel()
31 sel->dport = xfrm_flowi_dport(fl, &fl4->uli); in __xfrm4_init_tempsel()
33 sel->sport = xfrm_flowi_sport(fl, &fl4->uli); in __xfrm4_init_tempsel()
Dxfrm4_policy.c69 static int xfrm4_get_tos(const struct flowi *fl) in xfrm4_get_tos() argument
71 return IPTOS_RT_MASK & fl->u.ip4.flowi4_tos; /* Strip ECN bits */ in xfrm4_get_tos()
81 const struct flowi *fl) in xfrm4_fill_dst() argument
84 const struct flowi4 *fl4 = &fl->u.ip4; in xfrm4_fill_dst()
106 _decode_session4(struct sk_buff *skb, struct flowi *fl, int reverse) in _decode_session4() argument
110 struct flowi4 *fl4 = &fl->u.ip4; in _decode_session4()
Dnetfilter.c177 struct flowi *fl, bool strict __always_unused) in nf_ip_route() argument
179 struct rtable *rt = ip_route_output_key(net, &fl->u.ip4); in nf_ip_route()
Dinet_connection_sock.c454 fl4 = &newinet->cork.fl.u.ip4; in inet_csk_route_child_sock()
909 static struct dst_entry *inet_csk_rebuild_route(struct sock *sk, struct flowi *fl) in inet_csk_rebuild_route() argument
921 fl4 = &fl->u.ip4; in inet_csk_rebuild_route()
941 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); in inet_csk_update_pmtu()
949 dst = inet_csk_rebuild_route(sk, &inet->cork.fl); in inet_csk_update_pmtu()
Dfib_rules.c105 static int fib4_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) in fib4_rule_match() argument
108 struct flowi4 *fl4 = &fl->u.ip4; in fib4_rule_match()
Ddatagram.c52 fl4 = &inet->cork.fl.u.ip4; in ip4_datagram_connect()
/net/core/
Dfib_rules.c217 struct flowi *fl, int flags) in fib_rule_match() argument
221 if (rule->iifindex && (rule->iifindex != fl->flowi_iif)) in fib_rule_match()
224 if (rule->oifindex && (rule->oifindex != fl->flowi_oif)) in fib_rule_match()
227 if ((rule->mark ^ fl->flowi_mark) & rule->mark_mask) in fib_rule_match()
230 if (uid_lt(fl->flowi_uid, rule->uid_range.start) || in fib_rule_match()
231 uid_gt(fl->flowi_uid, rule->uid_range.end)) in fib_rule_match()
234 ret = ops->match(rule, fl, flags); in fib_rule_match()
239 int fib_rules_lookup(struct fib_rules_ops *ops, struct flowi *fl, in fib_rules_lookup() argument
249 if (!fib_rule_match(rule, ops, fl, flags)) in fib_rules_lookup()
265 err = ops->action(rule, fl, flags, arg); in fib_rules_lookup()
/net/netfilter/
Dxt_TCPMSS.c167 struct flowi fl; in tcpmss_reverse_mtu() local
173 struct flowi4 *fl4 = &fl.u.ip4; in tcpmss_reverse_mtu()
177 struct flowi6 *fl6 = &fl.u.ip6; in tcpmss_reverse_mtu()
185 ai->route(&init_net, (struct dst_entry **)&rt, &fl, false); in tcpmss_reverse_mtu()
Dnf_nat_core.c55 static void __nf_nat_decode_session(struct sk_buff *skb, struct flowi *fl) in __nf_nat_decode_session() argument
80 l3proto->decode_session(skb, ct, dir, statusbit, fl); in __nf_nat_decode_session()
87 struct flowi fl; in nf_xfrm_me_harder() local
92 err = xfrm_decode_session(skb, &fl, family); in nf_xfrm_me_harder()
101 dst = xfrm_lookup(dev_net(dst->dev), dst, &fl, skb->sk, 0); in nf_xfrm_me_harder()
/net/sctp/
Dtransport.c231 &transport->fl, sk); in sctp_transport_pmtu()
258 t->af_specific->get_dst(t, &t->saddr, &t->fl, sk); in sctp_transport_update_pmtu()
265 t->af_specific->get_dst(t, &t->saddr, &t->fl, sk); in sctp_transport_update_pmtu()
278 af->get_dst(transport, saddr, &transport->fl, sctp_opt2sk(opt)); in sctp_transport_route()
283 af->get_saddr(opt, transport, &transport->fl); in sctp_transport_route()
Dprotocol.c429 struct flowi *fl, struct sock *sk) in sctp_v4_get_dst() argument
433 struct flowi4 *fl4 = &fl->u.ip4; in sctp_v4_get_dst()
527 struct flowi *fl) in sctp_v4_get_saddr() argument
534 saddr->v4.sin_addr.s_addr = fl->u.ip4.saddr; in sctp_v4_get_saddr()
957 &transport->fl.u.ip4.saddr, in sctp_v4_xmit()
958 &transport->fl.u.ip4.daddr); in sctp_v4_xmit()
964 return ip_queue_xmit(skb, &transport->fl); in sctp_v4_xmit()
Dipv6.c258 struct flowi *fl, struct sock *sk) in sctp_v6_get_dst() argument
262 struct flowi6 *fl6 = &fl->u.ip6; in sctp_v6_get_dst()
375 struct flowi *fl) in sctp_v6_get_saddr() argument
377 struct flowi6 *fl6 = &fl->u.ip6; in sctp_v6_get_saddr()
/net/openvswitch/
Dactions.c206 static void set_ipv6_fl(struct ipv6hdr *nh, u32 fl) in set_ipv6_fl() argument
208 nh->flow_lbl[0] = (nh->flow_lbl[0] & 0xF0) | (fl & 0x000F0000) >> 16; in set_ipv6_fl()
209 nh->flow_lbl[1] = (fl & 0x0000FF00) >> 8; in set_ipv6_fl()
210 nh->flow_lbl[2] = fl & 0x000000FF; in set_ipv6_fl()
/net/decnet/
Ddn_rules.c107 static int dn_fib_rule_match(struct fib_rule *rule, struct flowi *fl, int flags) in dn_fib_rule_match() argument
110 struct flowidn *fld = &fl->u.dn; in dn_fib_rule_match()
/net/ipv4/netfilter/
Dnf_nat_l3proto_ipv4.c36 struct flowi *fl) in nf_nat_ipv4_decode_session() argument
39 struct flowi4 *fl4 = &fl->u.ip4; in nf_nat_ipv4_decode_session()
/net/ipv6/netfilter/
Dnf_nat_l3proto_ipv6.c35 struct flowi *fl) in nf_nat_ipv6_decode_session() argument
38 struct flowi6 *fl6 = &fl->u.ip6; in nf_nat_ipv6_decode_session()
/net/l2tp/
Dl2tp_core.c1048 struct flowi *fl, size_t data_len) in l2tp_xmit_core() argument
1078 error = ip_queue_xmit(skb, fl); in l2tp_xmit_core()
1144 struct flowi *fl; in l2tp_xmit_skb() local
1186 fl = &inet->cork.fl; in l2tp_xmit_skb()
1232 l2tp_xmit_core(session, skb, fl, data_len); in l2tp_xmit_skb()

12