The HyperNews Linux KHG Discussion Pages

## virtual device driver?

  Forum: Device Drivers
  Date: Fri, 27 Jun 1997 18:57:51 GMT
  From: george <georgel@cs.ucla.edu>

i need to sandwich some code between ip and the underlying ethernet layer. i can either trap packets going into/out of ip_input.c and ip_output.c. but isn't the more elegant solution to create some sort of virtual device driver? i am assuming it is possible to stack device drivers on top of one another.
    1. is this possible?
    2. is there documentation on how to tell linux "how to
       stack the device drivers?"
any help is much appreciated. thank you