Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262927AbUDZQCz (ORCPT ); Mon, 26 Apr 2004 12:02:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263019AbUDZQCa (ORCPT ); Mon, 26 Apr 2004 12:02:30 -0400 Received: from chaos.analogic.com ([204.178.40.224]:14976 "EHLO chaos.analogic.com") by vger.kernel.org with ESMTP id S262927AbUDZQCJ (ORCPT ); Mon, 26 Apr 2004 12:02:09 -0400 Date: Mon, 26 Apr 2004 12:02:29 -0400 (EDT) From: "Richard B. Johnson" X-X-Sender: root@chaos Reply-To: root@chaos.analogic.com To: Parag Nemade cc: net dev , kernerl mail , linux net Subject: Re: ping takes much time to myself? In-Reply-To: <20040426154437.67657.qmail@web41402.mail.yahoo.com> Message-ID: References: <20040426154437.67657.qmail@web41402.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1146 Lines: 32 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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/