/net/ipv6/ |
D | ip6_flowlabel.c | 67 #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 …]
|
D | xfrm6_state.c | 24 __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()
|
D | xfrm6_policy.c | 74 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()
|
D | mip6.c | 211 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()
|
D | netfilter.c | 111 struct flowi *fl, bool strict) in nf_ip6_route() argument 123 result = ip6_route_output(net, sk, &fl->u.ip6); in nf_ip6_route()
|
D | fib6_rules.c | 115 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/ |
D | xfrm_policy.c | 64 __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 …]
|
D | xfrm_state.c | 658 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/ |
D | xfrm4_state.c | 25 __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()
|
D | xfrm4_policy.c | 69 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()
|
D | netfilter.c | 177 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()
|
D | inet_connection_sock.c | 454 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()
|
D | fib_rules.c | 105 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()
|
D | datagram.c | 52 fl4 = &inet->cork.fl.u.ip4; in ip4_datagram_connect()
|
/net/core/ |
D | fib_rules.c | 217 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/ |
D | xt_TCPMSS.c | 167 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()
|
D | nf_nat_core.c | 55 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/ |
D | transport.c | 231 &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()
|
D | protocol.c | 429 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()
|
D | ipv6.c | 258 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/ |
D | actions.c | 206 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/ |
D | dn_rules.c | 107 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/ |
D | nf_nat_l3proto_ipv4.c | 36 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/ |
D | nf_nat_l3proto_ipv6.c | 35 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/ |
D | l2tp_core.c | 1048 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()
|