I&#39;m not sure if this is best for the users or developers list.  I&#39;ll try here fist:<br><br>I&#39;m writing a kernel module to detect when a new interface is activated and then apply some firewall rules if it&#39;s not a vpn (long story about why I&#39;m doing this in kernel space as opposed to using udev).<br>
<br>I&#39;m assuming I&#39;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&#39;ve found so far is net_device.dev.driver-&gt;owner-&gt;name Althought I&#39;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>