lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 16 Jul 2010 12:33:06 -0700 (PDT) From: David Miller <davem@...emloft.net> To: chetanloke@...il.com Cc: shemminger@...tta.com, Chetan.Loke@...scout.com, bhutchings@...arflare.com, netdev@...r.kernel.org Subject: Re: [RFC] Enhance dev_ioctl to return <hwaddr>:<if_name::if_index> mapping From: Chetan Loke <chetanloke@...il.com> Date: Fri, 16 Jul 2010 15:29:06 -0400 > On Fri, Jul 16, 2010 at 2:31 PM, Stephen Hemminger > <shemminger@...tta.com> wrote: >> Simple way: >> Use SIOCGIFCONF to get list of interfaces >> Use SIOCGIFHWADDR to read device addresss >> > And interfaces that don't have IP's? There is no requirement that an interface have configured IP addresses in order to use those ioctl()'s. You simply create an arbitrary socket, and use the resulting 'fd' to run the ioctl's mentioned to fetch information about any and all interfaces which exist in the system. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists