Sean Boudreau(deleted)
07/14/2008 9:55 AM
post10459
|
On Fri, Jul 11, 2008 at 08:25:18AM -0400, Peter Engstrom wrote:
> Hi,
>
> I found the autoip module which shows a bit how pfil hooks are
> setup in an entry function, so things are getting clearer. Is
> there any difference in loading an lsm or driver module in the
> case where I would like to implement an ethernet filter
> (iopkt_drvr_entry vs iopkt_lsm_entry)?
The loading is basically the same. Drivers are
a bit more structured in that they all pretty
much call dev_attach() at some point whereas
lsm's are generally left to attach however they
want.
>
> I would like to be able to shut down or remove the module
> as well without slaying io-pkt (I guess that is not implemented in the autoip module).
Again there's no set shutdown method for lsm's. You
could poke your lsm into unloading via an ioctl,
rmdir() on its namespace entry (assuming it creates
one), other method...
Regards,
-seanb
|
|
|