What do you want the pseudo network driver to do? The easiest way I did this was to register a new packet type (dev_add_pack()) to receive packets meant for the pseudo driver and designated a subnet in routing table that sent all packets through the pseudo driver. Once the packet was handed off you your recieve/xmit function you are free to do what you want with it. /Amit On Sun, 2003-07-13 at 23:33, Lakshmi Shanmugam wrote: > Hi all, > > I am trying to write a pseudo network device driver. > The operations carried out in a normal device driver wherein > it transmits the packet to the network card has to be overwriten. > i want the packets to be given to my module. > > My problem is that i dont know how to initialize the driver. > In the normal driver it goes and probes the hardware which i dont need. > > If u guys can suggest me any link which explains how to write a sample > pseudo network device > driver code(netdevice) in linux will be of great help to me. > > Thanks in advance, > regards, > Lakshmi -- ---------------------------------------------------------------------- Amit Kucheria akucheria@<NOSPAM>metricsystems.com Metric Systems Corp. 2320 Cousteau Court, Suite 201, Vista, CA 92083 ----------------------------------------------------------------------
Attachment:
signature.asc
Description: This is a digitally signed message part