Hi,
In article <16134.951541573@xxxxxxxxxxxxxxxxxx> (at Sat, 26 Feb 2000 14:06:13
+0900), itojun@xxxxxxxxxx says:
> And my recommendation to linux camp is:
> - include getifaddrs into libc.
> - if you have sysctl(RT_NET_IFLIST):
> - use sysctl(RT_NET_IFLIST) as backend of getifaddrs.
> - may implement SIOCGLIFCONF as extra interface.
> - if you do not have sysctl(RT_NET_IFLIST):
> - implement SIOCGLIFCONF. use it as backend of getifaddrs.
I've implemented *prototype* of getifaddr() for Linux 2.2 (or later)
using PF_NETLINK socket (instead of RT_NET_IFLIST):
<http://apps.v6.linux.or.jp/pub/Linux/glibc/getifaddrs-20000306.tgz>.
We should discuss on:
1. Which family should be returned for interface addresses?
(AF_LINK on *BSDs)
2. What data should returned through ifa_data:
(struct if_data on *BSDs)
To do: getifaddrs() for Linux 2.0 (or earlier)...
--
Hideaki YOSHIFUJI <yoshfuji@xxxxxxxxxxxxxxxxx>
Web Page: http://www.ecei.tohoku.ac.jp/%7Eyoshfuji/
PGP5i FP: F731 6599 5EB2 BBA7 1515 1323 1806 A96F 5700 6B25
|