Home
last modified time | relevance | path

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

/net/ipv4/netfilter/
Dnf_conntrack_proto_icmp.c29 return &net->ct.nf_ct_proto.icmp; in icmp_pernet()
42 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple()
43 tuple->src.u.icmp.id = hp->un.echo.id; in icmp_pkt_to_tuple()
44 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple()
64 if (orig->dst.u.icmp.type >= sizeof(invmap) || in icmp_invert_tuple()
65 !invmap[orig->dst.u.icmp.type]) in icmp_invert_tuple()
68 tuple->src.u.icmp.id = orig->src.u.icmp.id; in icmp_invert_tuple()
69 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in icmp_invert_tuple()
70 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in icmp_invert_tuple()
79 tuple->dst.u.icmp.type, in icmp_print_tuple()
[all …]
Dnf_nat_proto_icmp.c26 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in icmp_in_range()
27 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmp_in_range()
41 range_size = ntohs(range->max_proto.icmp.id) - in icmp_unique_tuple()
42 ntohs(range->min_proto.icmp.id) + 1; in icmp_unique_tuple()
48 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + in icmp_unique_tuple()
70 hdr->un.echo.id, tuple->src.u.icmp.id, 0); in icmp_manip_pkt()
71 hdr->un.echo.id = tuple->src.u.icmp.id; in icmp_manip_pkt()
Dnf_nat_l3proto_ipv4.c192 struct icmphdr icmp; in nf_nat_icmp_reply_translation() member
210 if (inside->icmp.type == ICMP_REDIRECT) { in nf_nat_icmp_reply_translation()
230 if (!nf_nat_ipv4_manip_pkt(skb, hdrlen + sizeof(inside->icmp), in nf_nat_icmp_reply_translation()
237 inside->icmp.checksum = 0; in nf_nat_icmp_reply_translation()
238 inside->icmp.checksum = in nf_nat_icmp_reply_translation()
/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c47 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
48 tuple->src.u.icmp.id = hp->icmp6_identifier; in icmpv6_pkt_to_tuple()
49 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple()
76 int type = orig->dst.u.icmp.type - 128; in icmpv6_invert_tuple()
80 tuple->src.u.icmp.id = orig->src.u.icmp.id; in icmpv6_invert_tuple()
81 tuple->dst.u.icmp.type = invmap[type] - 1; in icmpv6_invert_tuple()
82 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in icmpv6_invert_tuple()
91 tuple->dst.u.icmp.type, in icmpv6_print_tuple()
92 tuple->dst.u.icmp.code, in icmpv6_print_tuple()
93 ntohs(tuple->src.u.icmp.id)); in icmpv6_print_tuple()
[all …]
Dnf_nat_proto_icmpv6.c28 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in icmpv6_in_range()
29 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmpv6_in_range()
43 range_size = ntohs(range->max_proto.icmp.id) - in icmpv6_unique_tuple()
44 ntohs(range->min_proto.icmp.id) + 1; in icmpv6_unique_tuple()
50 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + in icmpv6_unique_tuple()
76 tuple->src.u.icmp.id, 0); in icmpv6_manip_pkt()
77 hdr->icmp6_identifier = tuple->src.u.icmp.id; in icmpv6_manip_pkt()
/net/ipv4/
Dxfrm4_policy.c133 u8 *icmp = xprth; in _decode_session4() local
135 fl4->fl4_icmp_type = icmp[0]; in _decode_session4()
136 fl4->fl4_icmp_code = icmp[1]; in _decode_session4()
DMakefile12 arp.o icmp.o devinet.o af_inet.o igmp.o \
/net/ipv6/
Dxfrm6_policy.c181 u8 *icmp = (u8 *)exthdr; in _decode_session6() local
183 fl6->fl6_icmp_type = icmp[0]; in _decode_session6()
184 fl6->fl6_icmp_code = icmp[1]; in _decode_session6()
DMakefile10 raw.o icmp.o mcast.o reassembly.o tcp_ipv6.o ping.o \
/net/openvswitch/
Dflow.c495 struct icmp6hdr *icmp = icmp6_hdr(skb); in parse_icmpv6() local
502 key->ipv6.tp.src = htons(icmp->icmp6_type); in parse_icmpv6()
503 key->ipv6.tp.dst = htons(icmp->icmp6_code); in parse_icmpv6()
506 if (icmp->icmp6_code == 0 && in parse_icmpv6()
507 (icmp->icmp6_type == NDISC_NEIGHBOUR_SOLICITATION || in parse_icmpv6()
508 icmp->icmp6_type == NDISC_NEIGHBOUR_ADVERTISEMENT)) { in parse_icmpv6()
686 struct icmphdr *icmp = icmp_hdr(skb); in ovs_flow_extract() local
690 key->ipv4.tp.src = htons(icmp->type); in ovs_flow_extract()
691 key->ipv4.tp.dst = htons(icmp->code); in ovs_flow_extract()