Re: Knowing different network interfaces of the system

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

 



In article <27722468040917013838317e55@mail.gmail.com> you wrote:
> But for ioctl() system call a socket descriptor is needed and also the
> struct ifreq structure has to have the name of the interface in name
> of the structure.

Yes, just look in the net-tools source, there you can see. (However this is
a pretty bloated beast and you might better look into smaller tools).

Besides: maybe  you want to use netlink, or it is enough for you to read the
/proc/net/ files.

Greetings
Bernd
-- 
eckes privat - http://www.eckes.org/
Project Freefire - http://www.freefire.org/
-
: 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