Eric Gamess
unread,Jan 25, 2012, 3:13:15 PM1/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.