Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.arcetri.astro.it/irlab/library/linux/khg/HyperNews/get/net/net-intro/1/2.html
Дата изменения: Thu Mar 23 12:38:17 2000 Дата индексирования: Wed Sep 15 04:09:36 2010 Кодировка: Поисковые слова: п п п п п п п п п п р п р п р п р п |
If you want to scan the interface list from kernel space you can do something like: { struct device *dev; for (dev = dev_base; dev != NULL; dev = dev->next) { /* your code here */ /* example */ if (dev->family == AF_INET) { /* this is an inet device */ } if (dev->type == ARPHRD_ETHER) { /* this is ethernet */ } } } ./Pedro. |