What u
can do is write down ur own function in the driver rx_interrupt
(rtl8139_rx_interrupt this is w.r.t to 2.4.6 kernel) let the driver alloc the
skb
assign the protocol field etc
etc..
Before
the driver gives the packet to the stack (netif_rx) function call u can have ur
module capturing the packet .
u can
use skb_copy or skb_clone to copy an sk_buff depending on your
requirement.
regards,
Lakshmi
-----Original Message-----
From: kernelnewbies-bounce@nl.linux.org [mailto:kernelnewbies-bounce@nl.linux.org]On Behalf Of akula nishanth
Sent: Sunday, January 26, 2003 7:14 PM
To: kernelnewbies@nl.linux.org
Subject: from nishanth(urgent)hai
i am nishanth. i am doing a project in kernel module writing a pseudo driver to capture packets and to display headers. in my project i have to take packets from the network(lan). so i have to copy the packets in skbuff into local buffer. i am unable to gather necessary information about skbuff and how to make a copy of them. please help me by providing necessary information. i will be waiting for your reply.
thanking you
nishanth
With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs