/linux/net/batman-adv/ |
A D | tp_meter.c | 593 icmp = skb_put(skb, sizeof(*icmp)); in batadv_tp_send_msg() 600 icmp->ttl = BATADV_TTL; in batadv_tp_send_msg() 602 icmp->uid = uid; in batadv_tp_send_msg() 605 memcpy(icmp->session, session, sizeof(icmp->session)); in batadv_tp_send_msg() 688 icmp->session, icmp->uid, in batadv_tp_recv_ack() 728 icmp->uid, in batadv_tp_recv_ack() 1183 icmp = skb_put(skb, sizeof(*icmp)); in batadv_tp_send_ack() 1193 memcpy(icmp->session, session, sizeof(icmp->session)); in batadv_tp_send_ack() 1408 icmp->orig); in batadv_tp_recv_msg() 1453 icmp->timestamp, icmp->session, icmp->uid); in batadv_tp_recv_msg() [all …]
|
/linux/net/netfilter/ |
A D | nf_conntrack_proto_icmp.c | 37 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() 93 ct->tuplehash[0].tuple.dst.u.icmp.type); in nf_conntrack_icmp_packet() 283 if (tuple->dst.u.icmp.type >= sizeof(invmap) || in icmp_nlattr_to_tuple() [all …]
|
A D | nf_conntrack_proto_icmpv6.c | 42 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() 205 if (tuple->dst.u.icmp.type < 128 || in icmpv6_nlattr_to_tuple() 206 tuple->dst.u.icmp.type - 128 >= sizeof(invmap) || in icmpv6_nlattr_to_tuple() [all …]
|
A D | nf_nat_proto.c | 248 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()
|
A D | nf_nat_core.c | 222 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in l4proto_in_range() 223 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in l4proto_in_range() 394 keyptr = &tuple->src.u.icmp.id; in nf_nat_l4proto_unique_tuple() 399 min = ntohs(range->min_proto.icmp.id); in nf_nat_l4proto_unique_tuple() 400 range_size = ntohs(range->max_proto.icmp.id) - in nf_nat_l4proto_unique_tuple() 401 ntohs(range->min_proto.icmp.id) + 1; in nf_nat_l4proto_unique_tuple()
|
A D | nf_conntrack_standalone.c | 57 tuple->dst.u.icmp.type, in print_tuple() 58 tuple->dst.u.icmp.code, in print_tuple() 59 ntohs(tuple->src.u.icmp.id)); in print_tuple() 85 tuple->dst.u.icmp.type, in print_tuple() 86 tuple->dst.u.icmp.code, in print_tuple() 87 ntohs(tuple->src.u.icmp.id)); in print_tuple()
|
/linux/tools/testing/selftests/netfilter/ |
A D | conntrack_icmp_related.sh | 137 …meta l4proto icmp icmp type "destination-unreachable" ct state "related" counter name "related" ac… 138 meta l4proto { icmp, icmpv6 } ct state new,established accept 151 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 153 meta l4proto { icmp, icmpv6 } ct state "related" counter name "related" accept 167 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 169 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new" accept 170 meta l4proto { icmp, icmpv6 } ct state "established" counter name "established" accept 175 meta l4proto { icmp, icmpv6 } ct state established,untracked accept 177 meta l4proto { icmp, icmpv6 } ct state "new" counter name "new" 178 meta l4proto { icmp, icmpv6 } ct state "established" counter name "established" [all …]
|
A D | bridge_brouter.sh | 65 …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…
|
A D | nft_queue.sh | 97 ip protocol icmp queue bypass 355 meta oifname "tvrf" icmp type echo-request counter queue num 1 356 meta oifname "eth0" icmp type echo-request counter queue num 1 360 meta oifname "tvrf" icmp type echo-request counter queue num 1 361 meta oifname "eth0" icmp type echo-request counter queue num 1
|
A D | conntrack_vrf.sh | 116 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)
|
A D | nft_meta.sh | 59 meta l4proto icmp counter name "il4protocounter" 73 meta l4proto icmp counter name "ol4protocounter"
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | tc_actions.sh | 163 ip_proto icmp src_ip 192.0.2.1 dst_ip 192.0.2.2 type 8 action \ 170 ip_proto icmp src_ip 192.0.2.1 dst_ip 192.0.2.2 type 8 action drop 172 ip_proto icmp src_ip 192.0.2.1 dst_ip 192.0.2.2 type 0 action pass 175 -t icmp "ping,id=42,seq=10" -q
|
A D | vxlan_bridge_1d.sh | 398 $MZ $h1 -c 10 -d 100msec -p 64 -b $mac -B $dst -t icmp -q 701 -t icmp -q 733 -t icmp -q 761 -t icmp -q 770 -t icmp -q
|
A D | vxlan_bridge_1q.sh | 503 $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
|
/linux/net/openvswitch/ |
A D | flow.c | 413 struct icmp6hdr *icmp = icmp6_hdr(skb); in parse_icmpv6() local 418 key->tp.src = htons(icmp->icmp6_type); in parse_icmpv6() 419 key->tp.dst = htons(icmp->icmp6_code); in parse_icmpv6() 422 if (icmp->icmp6_code == 0 && in parse_icmpv6() 423 (icmp->icmp6_type == NDISC_NEIGHBOUR_SOLICITATION || in parse_icmpv6() 424 icmp->icmp6_type == NDISC_NEIGHBOUR_ADVERTISEMENT)) { in parse_icmpv6() 607 struct icmphdr *icmp = icmp_hdr(skb); in key_extract_l3l4() local 611 key->tp.src = htons(icmp->type); in key_extract_l3l4() 612 key->tp.dst = htons(icmp->code); in key_extract_l3l4()
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_cls_redirect.c | 717 struct icmphdr icmp; in process_icmpv4() local 718 if (!buf_copy(pkt, &icmp, sizeof(icmp))) { in process_icmpv4() 724 if (icmp.type == ICMP_ECHOREPLY) { in process_icmpv4() 729 if (icmp.type == ICMP_ECHO) { in process_icmpv4() 733 if (icmp.type != ICMP_DEST_UNREACH || icmp.code != ICMP_FRAG_NEEDED) { in process_icmpv4()
|
A D | bpf_flow.c | 154 struct icmphdr *icmp, _icmp; in parse_ip_proto() local 162 icmp = bpf_flow_dissect_get_header(skb, sizeof(*icmp), &_icmp); in parse_ip_proto() 163 if (!icmp) in parse_ip_proto()
|
/linux/net/sched/ |
A D | cls_flower.c | 52 struct flow_dissector_key_icmp icmp; member 1603 &mask->icmp.type, in fl_set_key() 1605 sizeof(key->icmp.type)); in fl_set_key() 1607 &mask->icmp.code, in fl_set_key() 1609 sizeof(key->icmp.code)); in fl_set_key() 1613 &mask->icmp.type, in fl_set_key() 1617 &mask->icmp.code, in fl_set_key() 2954 sizeof(key->icmp.type)) || in fl_dump_key() 2958 sizeof(key->icmp.code)))) in fl_dump_key() 2965 sizeof(key->icmp.type)) || in fl_dump_key() [all …]
|
/linux/include/uapi/linux/netfilter/ |
A D | nf_conntrack_tuple_common.h | 32 } icmp; member
|
/linux/net/ipv4/ |
A D | built-in.a | 34 icmp.o/
|
A D | .icmp.o.cmd | 1 …icmp.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aar… 3 source_net/ipv4/icmp.o := net/ipv4/icmp.c 5 deps_net/ipv4/icmp.o := \ 1483 include/net/icmp.h \ 1484 include/linux/icmp.h \ 1485 include/uapi/linux/icmp.h \ 1542 net/ipv4/icmp.o: $(deps_net/ipv4/icmp.o) 1544 $(deps_net/ipv4/icmp.o):
|
/linux/include/net/netns/ |
A D | conntrack.h | 83 struct nf_icmp_net icmp; member
|
/linux/tools/testing/selftests/net/ |
A D | fcnal-test.sh | 1774 run_cmd nettest -s -R -P icmp -l ${a} -b 1778 run_cmd nettest -s -R -P icmp -l ${a} -I ${NSA_DEV} -b 1814 run_cmd nettest -s -R -P icmp -l ${a} -b 1818 run_cmd nettest -s -R -P icmp -l ${a} -I ${NSA_DEV} -b 1821 run_cmd nettest -s -R -P icmp -l ${a} -I ${VRF} -b 1828 run_cmd nettest -s -R -P icmp -l ${a} -I ${VRF} -b 3412 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -b 3450 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -I ${VRF} -b 3461 run_cmd nettest -6 -s -R -P ipv6-icmp -l ${a} -I ${VRF} -b 3938 setup_cmd_nsb sysctl -qw net.ipv6.icmp.echo_ignore_multicast=1 [all …]
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
A D | bnxt_tc.c | 459 flow->l4_key.icmp.type = match.key->type; in bnxt_tc_parse_flow() 460 flow->l4_key.icmp.code = match.key->code; in bnxt_tc_parse_flow() 461 flow->l4_mask.icmp.type = match.mask->type; in bnxt_tc_parse_flow() 462 flow->l4_mask.icmp.code = match.mask->code; in bnxt_tc_parse_flow() 734 req->l4_src_port = htons(flow->l4_key.icmp.type); in bnxt_hwrm_cfa_flow_alloc() 735 req->l4_src_port_mask = htons(flow->l4_mask.icmp.type); in bnxt_hwrm_cfa_flow_alloc() 736 req->l4_dst_port = htons(flow->l4_key.icmp.code); in bnxt_hwrm_cfa_flow_alloc() 737 req->l4_dst_port_mask = htons(flow->l4_mask.icmp.code); in bnxt_hwrm_cfa_flow_alloc()
|
/linux/net/ipv6/ |
A D | Makefile | 11 raw.o icmp.o mcast.o reassembly.o tcp_ipv6.o ping.o \
|