Lines Matching full:icmp
21 #include "icmp.h"
219 * translate ipv4 icmp to ipv6 icmp
221 * icmp - source packet icmp header
223 * payload - icmp payload
227 int icmp_to_icmp6(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t checksum,
235 icmp6_type = icmp_to_icmp6_type(icmp->type, icmp->code);
237 icmp6_targ->icmp6_code = icmp_to_icmp6_code(icmp->type, icmp->code);
242 is_icmp_error(icmp->type) &&
244 // An ICMP error we understand, one level deep.
250 // needs to be, because the ICMP error contains an IPv4 header, which we will be translating to
252 // We only need to do this for ICMP->ICMPv6, not ICMPv6->ICMP, because ICMP does not use the
257 icmp6_targ->icmp6_id = icmp->un.echo.id;
258 icmp6_targ->icmp6_seq = icmp->un.echo.sequence;
274 * translate ipv6 icmp to ipv4 icmp
494 { icmp_iphdr, 0 }, // ICMP error inner IP header.
495 { icmp_fraghdr, 0 }, // ICMP error fragmentation header.
496 { icmp_transporthdr, 0 }, // ICMP error transport layer header.