On Thu, 16 Dec 2004 22:31:26 -0800 (PST), linux lover
<[EMAIL PROTECTED]> wrote:
> Hi all,
>                  I am newbie to Linux kernel
> programming. I want to write my own virtual network
> device driver that take every packets from IP layer
> just print the contents of packet(header part with its
> starting addresses only) and send it to actual device
> driver for packet transmission and at receiving end
> receive packet from NIC card again print the header
> addresses and send it to upper layer for normal packet
> processing.
>                 I require help about where can i get
> resources or any book for writing virtual network
> driver with SAMPLE EXAMPLES?
> regards,
> linux_lover
> 

try this.
1.  Netfilter hooks, search on google/linux.
2. Modify the network card driver of your NIC, and check out foll. functions.
   a. Transmit : hard_start_xmit function of dev structure.
    b. Receive : Interrupt handler function for NIC Irq line.

-- 
-----
KD.
http://www.geocities.com/kirandivekar/
--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List:      ([EMAIL PROTECTED])
List Information:  http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.

Reply via email to