| To: | Parag Nemade <cranium2003@xxxxxxxxx> |
|---|---|
| Subject: | Re: ping takes much time to myself? |
| From: | "Richard B. Johnson" <root@xxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 26 Apr 2004 12:02:29 -0400 (EDT) |
| Cc: | net dev <netdev@xxxxxxxxxxx>, kernerl mail <linux-kernel@xxxxxxxxxxxxxxx>, linux net <linux-net@xxxxxxxxxxxxxxx> |
| In-reply-to: | <20040426154437.67657.qmail@web41402.mail.yahoo.com> |
| References: | <20040426154437.67657.qmail@web41402.mail.yahoo.com> |
| Reply-to: | root@xxxxxxxxxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | ping takes much time to myself?, Parag Nemade |
|---|---|
| Next by Date: | [PATCH] tcp_vegas_cong_avoid doc, Stephen Hemminger |
| Previous by Thread: | ping takes much time to myself?, Parag Nemade |
| Next by Thread: | [PATCH] tcp_vegas_cong_avoid doc, Stephen Hemminger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |