Lines Matching full:icmp
27 #include <linux/icmp.h>
29 #include "icmp.h"
179 * translate ipv4 icmp to ipv6 icmp
181 * icmp - source packet icmp header
183 * payload - icmp payload
187 int icmp_to_icmp6(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t checksum,
195 icmp6_type = icmp_to_icmp6_type(icmp->type, icmp->code);
197 icmp6_targ->icmp6_code = icmp_to_icmp6_code(icmp->type, icmp->code);
202 is_icmp_error(icmp->type) &&
204 // An ICMP error we understand, one level deep.
210 // needs to be, because the ICMP error contains an IPv4 header, which we will be translating to
212 // alternative, which is to always update the pseudo-header checksum in all UDP/TCP/ICMP
214 // We only need to do this for ICMP->ICMPv6, not ICMPv6->ICMP, because ICMP does not use the
219 icmp6_targ->icmp6_id = icmp->un.echo.id;
220 icmp6_targ->icmp6_seq = icmp->un.echo.sequence;
236 * translate ipv6 icmp to ipv4 icmp