I'm not sure if this is best for the users or developers list. I'll try here fist:<br><br>I'm writing a kernel module to detect when a new interface is activated and then apply some firewall rules if it's not a vpn (long story about why I'm doing this in kernel space as opposed to using udev).<br>
<br>I'm assuming I'll need register a notifier for the inetaddr_chain notification chain (as opposed to the net_dev chain) to make sure the netfitler tables have been initialized. In the callback I should get a net_device that should give me all I need to determine if the underlying device is a openswan vpn or not.<br>
<br>The question is: what should I be looking for? <br><br>The best thing I've found so far is net_device.dev.driver->owner->name Althought I'm not sure what to match it against. <br>Any thoughts/suggestions?? <br>
My initial thought is that this should match KBUILD_MODNAME ... which is??<br><br>Thank you for your help!<br>Niall<br>