* ping takes much time to myself?
@ 2004-04-26 15:44 Parag Nemade
2004-04-26 16:02 ` Richard B. Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Parag Nemade @ 2004-04-26 15:44 UTC (permalink / raw)
To: net dev; +Cc: kernerl mail, linux net
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1124 bytes --]
hello,
i want to add my own variables with icmp header.
so i modified icmp header and added 2 variables to
make icmp header len is 16 bytes. but when i build
kernel image and boot it and then ping to myself why
am i still getting 8 bytes header i.e. 84 bytes packet
and why not 92 bytes packet?
56 bytes data + 16 bytes icmp header + 20 bytes ip
header = 92 bytes
also ping results shown below takes much time to ping
myself. what gone wrong? how to make it behave like
normal ping?
[root@localhost root]# ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of
data.
64 bytes from localhost.localdomain (127.0.0.1):
icmp_seq=1 ttl=64 time=1488806
ms
64 bytes from localhost.localdomain (127.0.0.1):
icmp_seq=2 ttl=64 time=1489805
ms
--- localhost.localdomain ping statistics ---
2 packets transmitted, 2 received, 0% packet loss,
time 999ms
rtt min/avg/max/mdev =
1488806.484/1489305.976/1489805.469/500.981 ms
[root@localhost root]#
regards,
parag.
__________________________________
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
http://photos.yahoo.com/ph/print_splash
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: ping takes much time to myself?
2004-04-26 15:44 ping takes much time to myself? Parag Nemade
@ 2004-04-26 16:02 ` Richard B. Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Richard B. Johnson @ 2004-04-26 16:02 UTC (permalink / raw)
To: Parag Nemade; +Cc: net dev, kernerl mail, linux net
On Mon, 26 Apr 2004, Parag Nemade wrote:
> hello,
> i want to add my own variables with icmp header.
> so i modified icmp header and added 2 variables to
> make icmp header len is 16 bytes. but when i build
> kernel image and boot it and then ping to myself why
> am i still getting 8 bytes header i.e. 84 bytes packet
> and why not 92 bytes packet?
> 56 bytes data + 16 bytes icmp header + 20 bytes ip
> header = 92 bytes
> also ping results shown below takes much time to ping
> myself. what gone wrong? how to make it behave like
> normal ping?
You don't modify the kernel to make a new ICMP packet!
You modify `ping` or make your own. If you change the
length of the header, it is no longer ICMP. Your
tools will misinterpret what you have.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5557.45 BogoMips).
Note 96.31% of all statistics are fiction.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-26 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-26 15:44 ping takes much time to myself? Parag Nemade
2004-04-26 16:02 ` Richard B. Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).