2002-07-24 Roland McGrath <roland@frob.com>
authorroland <roland>
Wed, 24 Jul 2002 22:56:06 +0000 (22:56 +0000)
committerroland <roland>
Wed, 24 Jul 2002 22:56:06 +0000 (22:56 +0000)
commit872c07b9b0b1c54a9467575482bc10303cf7e9f0
treea424cb25161895a47fcf352973f48755f5ee574c
parente135578919f32d30fb65372e1c509884432584ff
2002-07-24  Roland McGrath  <roland@frob.com>

* resolv/res_hconf.c (_res_hconf_reorder_addrs): Use an explicit
socket call to get an AF_INET socket, instead of using __opensock.
The SIOCGIFNETMASK ioctl will work only with a PF_INET socket.
* sysdeps/generic/ifreq.h (__ifreq): Take third argument SOCKFD,
if not -1 use it instead of calling __opensock.
* sysdeps/unix/sysv/linux/ifreq.h (__ifreq): Likewise.
* sysdeps/mach/hurd/ifreq.h (__ifreq): Take new argument and ignore it.
* resolv/res_hconf.c (_res_hconf_reorder_addrs): Pass new argument.
* sysdeps/mach/hurd/ifreq.h: New file.
* sysdeps/generic/ifreq.h (__if_freereq): Take second argument NUM_IFS.
* sysdeps/unix/sysv/linux/ifreq.h (__if_freereq): Likewise.
* resolv/res_hconf.c (_res_hconf_reorder_addrs): Update caller.
resolv/res_hconf.c