ICMP_ECHO_REQUEST ---> 128 for IPv4 in INETMANET

15 views
Skip to first unread message

Eric Gamess

unread,
Jan 25, 2012, 3:13:15 PM1/25/12
to omnetpp
Hi all,

I just did a small network with 2 hosts (StandardHost).
One on the host is sending ICMP Echo Request packets
to the other. I used IPv4. In the NED file, I put something
like:

pingApp.destAddr = "10.5.5.2";
// pingApp.srcAddr = "";
pingApp.packetSize = 40 B;
pingApp.interval = 2.0 s;
pingApp.hopLimit = 32;
pingApp.count = 5;
pingApp.startTime = 10.0 s;


There is a field called "Type" in the ICMP header. For a
ICMP Echo Request packet, the value of "Type" must be 8.
For a ICMP Echo Reply packet, the value of "Type" must be
0. However, when I look at this value with Tkenv, I have
128 for the Echo Request, and 129 for the Echo Reply.
These value (128 and 129) are for ICMPv6, that is for
IPv6, not for IPv4.

Any comment about that???
Thank you.

Eric.
Reply all
Reply to author
Forward
0 new messages