> does linux kernel keep tracks of the link state of network
> cards/interfaces?
sure ... I think :)
-- include/linux/netdevice.h --
struct device
{
...
unsigned short flags; /* interface flags (a la BSD) */
...
}
to check this up thing.
-- net/core/dev.c --
int dev_open(struct device *dev)
{
...
if (dev->flags&IFF_UP)
return 0;
...
}
-- to get the dev --
extern struct device *dev_get(const char *name);
extern struct device *dev_get_by_index(int ifindex);
-- Janne- To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.rutgers.edu
This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:27 EST