I\'ve been looking through net/core/dev.c and other files to try to find out how to get the list of network devices that are currently configured and it\'s proving to be a littl
This ought to do the trick:
#include struct net_device *dev; read_lock(&dev_base_lock); dev = first_net_device(&init_net); while (dev) { printk(KERN_INFO "found [%s]\n", dev->name); dev = next_net_device(dev); } read_unlock(&dev_base_lock);