in reply to Re: Invalid ICMP type 69
in thread Invalid ICMP type 69

After looking at Net::Ping I can see that the received ICMP packet type data starts 20 bytes into the packet. The following code sucessfully unpacks the ICMP Type and Sub-Code.
my($fromtype, $fromsubcode) = unpack("C2", substr($icmpbuffer, 20, 2) +);
Likewise, the NetPacket::ICMP->decode() function requires the same section of the packet and not the full packet that is returned. I wonder what the first portion of the packet is.

Replies are listed 'Best First'.
Re^3: Invalid ICMP type 69
by NetWallah (Canon) on Nov 04, 2006 at 01:31 UTC