Dear kernel brothers Exist one nice article in pharck, for install new hook in "Netfilter" level and hacking tcp/ip stack http://www.phrack.org/phrack/61/p61-0x0d_Hacking_the_Linux_Kernel_Network_Stack.txt On dl, 2005-01-24 at 17:56, sanjayk wrote: > Hi steve > It would be nice if you can post the link again. > It would be good for all newbies. > > TIA > sanjayk > > >Do you have to use the 2.4 kernel or can you use a 2.6 kernel. I > >believe some of the newer networking stuff is in a later version of > the > >2.4 kernel. > > > >If you don't want to use Ethereal or tcpdump, again, just use a > "hook" > >into the drivers. I've recently posted (I believe to you) an article > >(a very good one I might add) that goes over exactly how to put hooks > >into the networking path. I've done this already and it works and > >heck, if I can do it, believe me, anyone can do it! > > > >Would you like me to post the link to the article again?? > > >-stv > > -----Original Message----- > From: kernelnewbies-bounce@xxxxxxxxxxxx > [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Erik Mouw > Sent: Monday, January 24, 2005 6:45 AM > To: Hari Krishna > Cc: kernelnewbies@xxxxxxxxxxxx > Subject: Re: regarding receving the ethernet packet > > 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 > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > > > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/