From c47542925c44be2522adb442f268506dee9f34a7 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 6 Jan 2006 04:57:40 +0000 Subject: as weber notes in Bug 99: if_nameindex doesnt list all of my interfaces! this is because we are still using the old style ioctl(SIOCGIFINDEX) for gathering interface names/indexes. while this code is pretty small, the kernel does not return all interfaces via this method. so we import the new style netlink code from glibc and make it optional so those people who need the full functionality can get it. --- extra/Configs/Config.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'extra') diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index d110a19c7..61402c0f8 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -597,6 +597,20 @@ config UCLIBC_HAS_REENTRANT_RPC help Most packages utilize the normal (non-reentrant) RPC functions, but some (like exportfs from nfs-utils) need these reentrant versions. + + Most people can safely answer N. + +config UCLIBC_USE_NETLINK + bool "Use netlink to query interfaces" + default n + help + In newer versions of Linux (2.4.17+), support was added for querying + network device information via netlink rather than the old style + ioctl's. Most of the time, the older ioctl style is sufficient (and + it is smaller than netlink), but if you find that not all of your + devices are being returned by the if_nameindex() function, you will + have to use the netlink implementation. + Most people can safely answer N. endmenu -- cgit v1.2.3