> Please see recent (November-ish) flame on linux-netdev.
>
> Search for SIOGIFNETMASK and for Wietse Venema, (who was in the right, but
> flamed by multiple clueless people anyway). Linux gratuitously breaks the
> SIOCGIFNETMASK APIs because it wants to.
Ack.
> Newer kernels have some patch.
> pcap-linux.c should probably use netlink rather than SIOGIFNETMASK if it
> wants to be blessed by the Linux networking people.
Actually, the offending code is in "inet.c" - and there's more than just
"pcap_lookupnet()" using it now.
The USAGI project:
http://www.linux-ipv6.org/
has, as I remember, an implementation of "getifaddrs()" for Linux, using
netlink. Unfortunately, it's not a standard part of any library on
Linux, and it's not the user space API around netlink that you mentioned
in your message in that thread; adding additional APIs might be nice
there.
I don't know whether Postfix is getting information about all
interfaces, in which case "getifaddrs()" could be the API Wietse wants
(except that it'd require you to have the USAGI project's library), or
is just getting information about particular interfaces.
Perhaps we need to throw in some netlink stuff into "inet.c" on Linux -
and possibly use the Boring Old Legacy Interfaces on Linux kernels that
lack netlink, if it was, for example, a 2.2-ism.
-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:[EMAIL PROTECTED]?body=unsubscribe