* sysdeps/mach/hurd/if_index.c: Redone to use new interfaces in the Hurd pfinet serve...
commit5bd5e35748407739264507f39555149a4b337248
authorMark Kettenis <kettenis@gnu.org>
Sun, 1 Jul 2001 12:06:11 +0000 (1 12:06 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 1 Jul 2001 12:06:11 +0000 (1 12:06 +0000)
tree11533284461250e70c2ec12bf1bd7a253bbb3bc7
parentf669de74eac4260d1e8dfef63449211af4da9bfe
* sysdeps/mach/hurd/if_index.c: Redone to use new interfaces in the Hurd pfinet server, using equivalent code from the Linux version in sysdeps/unix/sysv/linux/if_index.c. In detail: Include <unistd.h>, <error.h>, <sys/ioctl.h>, <hurd/ioctl.h> and <hurd/pfinet.h>.  Don't include <sys/mman.h> and <hurd/fsys.h> anymore. (if_nametoindex): New implementation using SIOCGIFINDEX. (if_freenameindex): Straight copy of the Linux version. (if_nameindex): New implementation based on pfinet_siocgifconf and SIOCGIFINDEX. (if_indextoname): New implementation using SIOCGIFNAME. (map_interfaces): Function removed. From Marcus Brinkmann <marcus@gnu.org>.

2001-07-01  Mark Kettenis  <kettenis@gnu.org>

* sysdeps/mach/hurd/if_index.c: Redone to use new interfaces in
the Hurd pfinet server, using equivalent code from the Linux
version in sysdeps/unix/sysv/linux/if_index.c. In detail:
Include <unistd.h>, <error.h>, <sys/ioctl.h>, <hurd/ioctl.h> and
<hurd/pfinet.h>.  Don't include <sys/mman.h> and <hurd/fsys.h>
anymore.
(if_nametoindex): New implementation using SIOCGIFINDEX.
(if_freenameindex): Straight copy of the Linux version.
(if_nameindex): New implementation based on pfinet_siocgifconf and
SIOCGIFINDEX.
(if_indextoname): New implementation using SIOCGIFNAME.
(map_interfaces): Function removed.
From Marcus Brinkmann <marcus@gnu.org>.
ChangeLog
sysdeps/mach/hurd/if_index.c