distinguish the virtual interface from a physical interface.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear all,

I need to examine the parameters of physical interfaces on a node. However,
when i use NETLINK_ROUTE socket to receive the interface information from
the kernel, I cannot distinguish a virtual interface from a physical one. I
try to use if_nameindex function to get the physical interface name and
indexes and then use RTM_GETLINK to examine the interface parameters.

Can you tell me there are another way to do it ?

Nary Tra


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux