Home
last modified time | relevance | path

Searched refs:ip_proto (Results 1 – 14 of 14) sorted by relevance

/net/ipv4/
Dnetlink.c10 int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 *ip_proto, u8 family, in rtm_getroute_parse_ip_proto() argument
13 *ip_proto = nla_get_u8(attr); in rtm_getroute_parse_ip_proto()
15 switch (*ip_proto) { in rtm_getroute_parse_ip_proto()
Droute.c1934 hash_keys.basic.ip_proto = keys.basic.ip_proto; in fib_multipath_custom_hash_outer()
1984 hash_keys.basic.ip_proto = keys.basic.ip_proto; in fib_multipath_custom_hash_inner()
2021 hash_keys.basic.ip_proto = fl4->flowi4_proto; in fib_multipath_custom_hash_fl4()
2072 hash_keys.basic.ip_proto = flkeys->basic.ip_proto; in fib_multipath_hash()
2080 hash_keys.basic.ip_proto = fl4->flowi4_proto; in fib_multipath_hash()
2101 hash_keys.basic.ip_proto = keys.basic.ip_proto; in fib_multipath_hash()
3145 u8 ip_proto, __be16 sport, in inet_rtm_getroute_build_skb() argument
3162 iph->protocol = ip_proto; in inet_rtm_getroute_build_skb()
3282 u8 ip_proto = IPPROTO_UDP; in inet_rtm_getroute() local
3310 &ip_proto, AF_INET, extack); in inet_rtm_getroute()
[all …]
Dfib_rules.c192 if (rule->ip_proto && (rule->ip_proto != fl4->flowi4_proto)) in fib4_rule_match()
/net/core/
Dflow_dissector.c119 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto, in __skb_flow_get_ports() argument
122 int poff = proto_ports_offset(ip_proto); in __skb_flow_get_ports()
830 int nhoff, u8 ip_proto, int hlen) in __skb_flow_dissect_ports() argument
847 key_ports->ports = __skb_flow_get_ports(skb, nhoff, ip_proto, in __skb_flow_dissect_ports()
924 key_basic->ip_proto = flow_keys->ip_proto; in __skb_flow_bpf_to_target()
1040 u8 ip_proto = 0; in __skb_flow_dissect() local
1177 ip_proto = iph->protocol; in __skb_flow_dissect()
1223 ip_proto = iph->nexthdr; in __skb_flow_dissect()
1501 switch (ip_proto) { in __skb_flow_dissect()
1528 ip_proto = opthdr[0]; in __skb_flow_dissect()
[all …]
Dfib_rules.c471 if (rule->ip_proto && r->ip_proto != rule->ip_proto) in rule_find()
656 nlrule->ip_proto = nla_get_u8(tb[FRA_IP_PROTO]); in fib_nl2rule()
732 if (r->ip_proto != rule->ip_proto) in rule_exists()
1070 (rule->ip_proto && nla_put_u8(skb, FRA_IP_PROTO, rule->ip_proto))) in fib_nl_fill_rule()
/net/sched/
Dcls_flower.c806 if (key->basic.ip_proto != IPPROTO_ESP && in fl_set_key_spi()
807 key->basic.ip_proto != IPPROTO_AH) { in fl_set_key_spi()
1808 fl_set_key_val(tb, &key->basic.ip_proto, TCA_FLOWER_KEY_IP_PROTO, in fl_set_key()
1809 &mask->basic.ip_proto, TCA_FLOWER_UNSPEC, in fl_set_key()
1810 sizeof(key->basic.ip_proto)); in fl_set_key()
1834 if (key->basic.ip_proto == IPPROTO_TCP) { in fl_set_key()
1844 } else if (key->basic.ip_proto == IPPROTO_UDP) { in fl_set_key()
1851 } else if (key->basic.ip_proto == IPPROTO_SCTP) { in fl_set_key()
1859 key->basic.ip_proto == IPPROTO_ICMP) { in fl_set_key()
1869 key->basic.ip_proto == IPPROTO_ICMPV6) { in fl_set_key()
[all …]
Dcls_flow.c90 return flow->basic.ip_proto; in flow_get_proto()
Dsch_cake.c687 host_keys.basic.ip_proto = 0; in cake_hash()
/net/ipv6/
Dfib6_rules.c334 if (rule->ip_proto && (rule->ip_proto != fl6->flowi6_proto)) in fib6_rule_match()
Droute.c2332 keys->basic.ip_proto = _flkeys->basic.ip_proto; in ip6_multipath_l3_keys()
2337 keys->basic.ip_proto = key_iph->nexthdr; in ip6_multipath_l3_keys()
2360 hash_keys.basic.ip_proto = keys.basic.ip_proto; in rt6_multipath_custom_hash_outer()
2412 hash_keys.basic.ip_proto = keys.basic.ip_proto; in rt6_multipath_custom_hash_inner()
2449 hash_keys.basic.ip_proto = fl6->flowi6_proto; in rt6_multipath_custom_hash_fl6()
2477 hash_keys.basic.ip_proto = fl6->flowi6_proto; in rt6_multipath_hash()
2501 hash_keys.basic.ip_proto = flkeys->basic.ip_proto; in rt6_multipath_hash()
2509 hash_keys.basic.ip_proto = fl6->flowi6_proto; in rt6_multipath_hash()
2534 hash_keys.basic.ip_proto = flkeys->basic.ip_proto; in rt6_multipath_hash()
2546 hash_keys.basic.ip_proto = fl6->flowi6_proto; in rt6_multipath_hash()
/net/netfilter/
Dnft_payload.c404 NFT_OFFLOAD_MATCH(FLOW_DISSECTOR_KEY_BASIC, basic, ip_proto, in nft_payload_offload_ip()
444 NFT_OFFLOAD_MATCH(FLOW_DISSECTOR_KEY_BASIC, basic, ip_proto, in nft_payload_offload_ip6()
Dnf_flow_table_offload.c182 key->basic.ip_proto = tuple->l4proto; in nf_flow_rule_match()
183 mask->basic.ip_proto = 0xff; in nf_flow_rule_match()
Dnft_meta.c728 NFT_OFFLOAD_MATCH_EXACT(FLOW_DISSECTOR_KEY_BASIC, basic, ip_proto, in nft_meta_get_offload()
/net/ethtool/
Dioctl.c3300 match->key.basic.ip_proto = IPPROTO_TCP; in ethtool_rx_flow_rule_create()
3301 match->mask.basic.ip_proto = 0xff; in ethtool_rx_flow_rule_create()
3305 match->key.basic.ip_proto = IPPROTO_UDP; in ethtool_rx_flow_rule_create()
3306 match->mask.basic.ip_proto = 0xff; in ethtool_rx_flow_rule_create()