Re: regarding receving the ethernet packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 24, 2005 at 12:57:34PM +0530, Hari Krishna wrote:
>  2)now , i have to get the output of received ethernet packet
> consists preamble is this, source address is this, destination address
> is this, data is this, crc is checked.
>  3)so i am trying to use netwotk drivers for this to receive the
> etherent packet from linux machine.
>  4)i am trying to use the existing kernel function . i  will add my
> own function in kernel function
>  5)the kernel function is /usr/src/linux-2.4.20-8/net/core/dev.c
>  6)so i am compiling dev.c after adding my own function in dev.c
>  7)particularly, i am using netif_rx function which is in dev.c
>  8)i will recompile the whole kernel after modifying the kernel to
> get my output.
>  9)this is the way that i expected to print ethernet frame format

Don't try to reinvent the wheel, just use tcpdump and/or ethereal. See
"man tcpdump" and "man ethereal".


Erik

-- 
Erik Mouw
J.A.K.Mouw@xxxxxxxxxxxxxx  mouw@xxxxxxxxxxxx

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux