Home
last modified time | relevance | path

Searched refs:icmp (Results 1 – 25 of 46) sorted by relevance

12

/kernel/linux/linux-5.10/net/batman-adv/
Dtp_meter.c581 struct batadv_icmp_tp_packet *icmp; in batadv_tp_send_msg() local
592 icmp = skb_put(skb, sizeof(*icmp)); in batadv_tp_send_msg()
595 ether_addr_copy(icmp->dst, orig_node->orig); in batadv_tp_send_msg()
596 ether_addr_copy(icmp->orig, src); in batadv_tp_send_msg()
597 icmp->version = BATADV_COMPAT_VERSION; in batadv_tp_send_msg()
598 icmp->packet_type = BATADV_ICMP; in batadv_tp_send_msg()
599 icmp->ttl = BATADV_TTL; in batadv_tp_send_msg()
600 icmp->msg_type = BATADV_TP; in batadv_tp_send_msg()
601 icmp->uid = uid; in batadv_tp_send_msg()
603 icmp->subtype = BATADV_TP_MSG; in batadv_tp_send_msg()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_conntrack_proto_icmp.c37 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple()
38 tuple->src.u.icmp.id = hp->un.echo.id; in icmp_pkt_to_tuple()
39 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple()
59 if (orig->dst.u.icmp.type >= sizeof(invmap) || in nf_conntrack_invert_icmp_tuple()
60 !invmap[orig->dst.u.icmp.type]) in nf_conntrack_invert_icmp_tuple()
63 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmp_tuple()
64 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in nf_conntrack_invert_icmp_tuple()
65 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmp_tuple()
89 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in nf_conntrack_icmp_packet()
90 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in nf_conntrack_icmp_packet()
[all …]
Dnf_conntrack_proto_icmpv6.c42 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
43 tuple->src.u.icmp.id = hp->icmp6_identifier; in icmpv6_pkt_to_tuple()
44 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple()
71 int type = orig->dst.u.icmp.type - 128; in nf_conntrack_invert_icmpv6_tuple()
75 tuple->src.u.icmp.id = orig->src.u.icmp.id; in nf_conntrack_invert_icmpv6_tuple()
76 tuple->dst.u.icmp.type = invmap[type] - 1; in nf_conntrack_invert_icmpv6_tuple()
77 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in nf_conntrack_invert_icmpv6_tuple()
102 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in nf_conntrack_icmpv6_packet()
234 if (nla_put_be16(skb, CTA_PROTO_ICMPV6_ID, t->src.u.icmp.id) || in icmpv6_tuple_to_nlattr()
235 nla_put_u8(skb, CTA_PROTO_ICMPV6_TYPE, t->dst.u.icmp.type) || in icmpv6_tuple_to_nlattr()
[all …]
Dnf_nat_proto.c248 hdr->un.echo.id, tuple->src.u.icmp.id, false); in icmp_manip_pkt()
249 hdr->un.echo.id = tuple->src.u.icmp.id; in icmp_manip_pkt()
270 tuple->src.u.icmp.id, false); in icmpv6_manip_pkt()
271 hdr->icmp6_identifier = tuple->src.u.icmp.id; in icmpv6_manip_pkt()
565 struct icmphdr icmp; in nf_nat_icmp_reply_translation() member
582 if (inside->icmp.type == ICMP_REDIRECT) { in nf_nat_icmp_reply_translation()
601 if (!nf_nat_ipv4_manip_pkt(skb, hdrlen + sizeof(inside->icmp), in nf_nat_icmp_reply_translation()
608 inside->icmp.checksum = 0; in nf_nat_icmp_reply_translation()
609 inside->icmp.checksum = in nf_nat_icmp_reply_translation()
Dnf_nat_core.c242 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in l4proto_in_range()
243 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in l4proto_in_range()
414 keyptr = &tuple->src.u.icmp.id; in nf_nat_l4proto_unique_tuple()
419 min = ntohs(range->min_proto.icmp.id); in nf_nat_l4proto_unique_tuple()
420 range_size = ntohs(range->max_proto.icmp.id) - in nf_nat_l4proto_unique_tuple()
421 ntohs(range->min_proto.icmp.id) + 1; in nf_nat_l4proto_unique_tuple()
Dnf_conntrack_standalone.c54 tuple->dst.u.icmp.type, in print_tuple()
55 tuple->dst.u.icmp.code, in print_tuple()
56 ntohs(tuple->src.u.icmp.id)); in print_tuple()
82 tuple->dst.u.icmp.type, in print_tuple()
83 tuple->dst.u.icmp.code, in print_tuple()
84 ntohs(tuple->src.u.icmp.id)); in print_tuple()
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/
Dconntrack_icmp_related.sh139 …meta l4proto icmp icmp type "destination-unreachable" ct state "related" counter name "related" ac…
140 meta l4proto { icmp, icmpv6 } ct state new,established accept
156 icmp type "redirect" ct state "related" counter name "redir4" accept
159 meta l4proto { icmp, icmpv6 } ct state established,untracked accept
160 meta l4proto { icmp, icmpv6 } ct state "related" counter name "related" accept
175 meta l4proto { icmp, icmpv6 } ct state established,untracked accept
177 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new" accept
178 meta l4proto { icmp, icmpv6 } ct state "established" counter name "established" accept
183 meta l4proto { icmp, icmpv6 } ct state established,untracked accept
185 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new"
[all …]
Dbridge_brouter.sh65 …ip netns exec ns0 ebtables -t broute -A BROUTING -p ipv4 --ip-protocol icmp -j redirect --redirect…
103 ip netns exec ns0 ebtables -t filter -A FORWARD -p ipv4 --ip-protocol icmp -j DROP
113 …ip netns exec ns0 ebtables -t broute -A BROUTING -p ipv4 --ip-protocol icmp -j redirect --redirect…
Dconntrack_vrf.sh116 ip protocol icmp counter
132 count=$(ip netns exec $ns0 conntrack -L -s $IP1 -d $IP0 -p icmp --zone 1 2>/dev/null | wc -l)
137 count=$(ip netns exec $ns0 conntrack -L -s $IP1 -d $IP0 -p icmp --zone 2 2> /dev/null | wc -l)
Dnft_meta.sh59 meta l4proto icmp counter name "il4protocounter"
73 meta l4proto icmp counter name "ol4protocounter"
/kernel/linux/linux-5.10/net/openvswitch/
Dflow.c408 struct icmp6hdr *icmp = icmp6_hdr(skb); in parse_icmpv6() local
413 key->tp.src = htons(icmp->icmp6_type); in parse_icmpv6()
414 key->tp.dst = htons(icmp->icmp6_code); in parse_icmpv6()
417 if (icmp->icmp6_code == 0 && in parse_icmpv6()
418 (icmp->icmp6_type == NDISC_NEIGHBOUR_SOLICITATION || in parse_icmpv6()
419 icmp->icmp6_type == NDISC_NEIGHBOUR_ADVERTISEMENT)) { in parse_icmpv6()
601 struct icmphdr *icmp = icmp_hdr(skb); in key_extract_l3l4() local
605 key->tp.src = htons(icmp->type); in key_extract_l3l4()
606 key->tp.dst = htons(icmp->code); in key_extract_l3l4()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_cls_redirect.c710 struct icmphdr icmp; in process_icmpv4() local
711 if (!buf_copy(pkt, &icmp, sizeof(icmp))) { in process_icmpv4()
717 if (icmp.type == ICMP_ECHOREPLY) { in process_icmpv4()
722 if (icmp.type == ICMP_ECHO) { in process_icmpv4()
726 if (icmp.type != ICMP_DEST_UNREACH || icmp.code != ICMP_FRAG_NEEDED) { in process_icmpv4()
Dbpf_flow.c155 struct icmphdr *icmp, _icmp; in parse_ip_proto() local
163 icmp = bpf_flow_dissect_get_header(skb, sizeof(*icmp), &_icmp); in parse_ip_proto()
164 if (!icmp) in parse_ip_proto()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/netfilter/
Dnf_conntrack_tuple_common.h39 } icmp; member
/kernel/linux/linux-5.10/net/sched/
Dcls_flower.c51 struct flow_dissector_key_icmp icmp; member
1591 fl_set_key_val(tb, &key->icmp.type, TCA_FLOWER_KEY_ICMPV4_TYPE, in fl_set_key()
1592 &mask->icmp.type, in fl_set_key()
1594 sizeof(key->icmp.type)); in fl_set_key()
1595 fl_set_key_val(tb, &key->icmp.code, TCA_FLOWER_KEY_ICMPV4_CODE, in fl_set_key()
1596 &mask->icmp.code, in fl_set_key()
1598 sizeof(key->icmp.code)); in fl_set_key()
1601 fl_set_key_val(tb, &key->icmp.type, TCA_FLOWER_KEY_ICMPV6_TYPE, in fl_set_key()
1602 &mask->icmp.type, in fl_set_key()
1604 sizeof(key->icmp.type)); in fl_set_key()
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/netfilter/
Dnf_conntrack_tuple_common.h32 } icmp; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/netfilter/
Dnf_conntrack_tuple_common.h29 } icmp; member
/kernel/linux/common_modules/newip/src/linux-5.10/net/newip/
DMakefile11 …ddrconf.o nip_addrconf_core.o route.o nip_fib.o nip_fib_rules.o nndisc.o icmp.o tcp_nip_parameter…
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dvxlan_bridge_1d.sh398 $MZ $h1 -c 10 -d 100msec -p 64 -b $mac -B $dst -t icmp -q
690 -t icmp -q
722 -t icmp -q
750 -t icmp -q
759 -t icmp -q
Dvxlan_bridge_1q.sh503 $MZ $h1 -Q $vid -c 10 -d 100msec -p 64 -b $mac -B $dst -t icmp -q
726 -B $dst -t icmp -q
761 -B $dst -t icmp -q
793 -B $dst -t icmp -q
803 -B $dst -t icmp -q
/kernel/linux/linux-5.10/include/net/netns/
Dconntrack.h76 struct nf_icmp_net icmp; member
/kernel/linux/linux-5.10/net/ipv6/
DMakefile11 raw.o icmp.o mcast.o reassembly.o tcp_ipv6.o ping.o \
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dfcnal-test.sh1717 run_cmd nettest -s -R -P icmp -l ${a} -b
1721 run_cmd nettest -s -R -P icmp -l ${a} -d ${NSA_DEV} -b
1757 run_cmd nettest -s -R -P icmp -l ${a} -b
1761 run_cmd nettest -s -R -P icmp -l ${a} -d ${NSA_DEV} -b
1764 run_cmd nettest -s -R -P icmp -l ${a} -d ${VRF} -b
1771 run_cmd nettest -s -R -P icmp -l ${a} -d ${VRF} -b
3361 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -b
3365 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -d ${NSA_DEV} -b
3399 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -d ${VRF} -b
3403 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -d ${NSA_DEV} -b
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Ddevlink_trap_l3_exceptions.sh186 flower skip_hw ip_proto icmp type 3 code 4 action pass
224 flower skip_hw ip_proto icmp type 11 code 0 action pass
/kernel/linux/linux-5.10/include/net/netfilter/
Dnf_conntrack_tuple.h55 } icmp; member

12