Sync lib/net with FreeBSD:
authorPeter Avalos <pavalos@theshell.com>
Mon, 2 Feb 2009 07:19:33 +0000 (02:19 -0500)
committerPeter Avalos <pavalos@theshell.com>
Tue, 7 Apr 2009 07:09:04 +0000 (21:09 -1000)
commit12b71966523767edac25f6eae662fc718114c28b
tree48096976768eaa02637ad02df9aa790242a61a58
parent90691259f8ad992657bc287877e610f7895f5730
Sync lib/net with FreeBSD:

* Add a byteorder.9 manual page.
* Remove the addr2ascii and ascii2addr functions.  They aren't used in
  the tree, and there's other functions that are more generic and
  appropriate.
* Fix a few style issues.
* Add and document ether_ntoa_r() and ether_aton_r() functions, which
  accept passed storage buffers rather than using static storage.
  Reimplement ether_ntoa() and ether_aton() in terms of these functions.
  These variants are thread-safe.
* Document that AI_ALL and AI_V4MAPPED flags are currently not supported.
* Add a SIOCGIFINDEX ioctl, which returns the index of a named interface.
  Use this ioctl in if_nametoindex(3) to use network aliases.
* Add restrict qualifier where needed.
* Add inet_ntoa_r() - a re-entrant function of inet_ntoa.
* Note that inet6_option_space.3 and inet6_rthdr_space.3 functions are
  deprecated in favor of inet6_opt_init.3 and inet6_rth_space.3.
* Remove NS and ISO stuff.
* Sync map_v4v6.c with BIND9.
* Instead of re-implementing hton[ls] and friends for each arch, add a
  new MI file, net/ntoh.c, which just implement them using the inline
  functions from <sys/endian.h>.
* Fix some namespace issues in <netdb.h>.
63 files changed:
Makefile_upgrade.inc
contrib/bind-9.3/lib/bind/inet/nsap_addr.c
include/arpa/inet.h
include/netdb.h
lib/libc/amd64/net/Makefile.inc [deleted file]
lib/libc/amd64/net/htonl.S [deleted file]
lib/libc/amd64/net/htons.S [deleted file]
lib/libc/amd64/net/ntohl.S [deleted file]
lib/libc/amd64/net/ntohs.S [deleted file]
lib/libc/i386/net/Makefile.inc [deleted file]
lib/libc/i386/net/htonl.S [deleted file]
lib/libc/i386/net/ntohl.S [deleted file]
lib/libc/i386/net/ntohs.S [deleted file]
lib/libc/net/Makefile.inc
lib/libc/net/addr2ascii.3 [deleted file]
lib/libc/net/addr2ascii.c [deleted file]
lib/libc/net/ascii2addr.c [deleted file]
lib/libc/net/byteorder.3
lib/libc/net/ether_addr.c
lib/libc/net/ethers.3
lib/libc/net/eui64.3
lib/libc/net/getaddrinfo.3
lib/libc/net/getifaddrs.3
lib/libc/net/getifaddrs.c
lib/libc/net/getipnodebyname.3
lib/libc/net/getnetent.3
lib/libc/net/getprotoent.3
lib/libc/net/getservent.3
lib/libc/net/if_indextoname.3
lib/libc/net/if_nametoindex.c
lib/libc/net/inet.3
lib/libc/net/inet6_option_space.3
lib/libc/net/inet6_rthdr_space.3
lib/libc/net/inet_net.3
lib/libc/net/ip6opt.c
lib/libc/net/iso_addr.3 [deleted file]
lib/libc/net/iso_addr.c [deleted file]
lib/libc/net/linkaddr.3
lib/libc/net/linkaddr.c
lib/libc/net/map_v4v6.c
lib/libc/net/ns.3 [deleted file]
lib/libc/net/ns_addr.c [deleted file]
lib/libc/net/ns_ntoa.c [deleted file]
lib/libc/net/nsap_addr.c [deleted file]
lib/libc/net/ntoh.c [new file with mode: 0644]
lib/libc/net/rcmd.3
lib/libc/net/rcmd.c
lib/libc/net/rcmdsh.3
lib/libc/net/rcmdsh.c
lib/libc/net/recv.c
lib/libc/net/resolver.3
lib/libc/net/send.c
lib/libc/net/sockatmark.3 [new file with mode: 0644]
lib/libc/net/sockatmark.c [moved from lib/libc/i386/net/htons.S with 55% similarity]
lib/libc/net/vars.c
sbin/route/Makefile
sbin/route/show.c
share/man/man9/Makefile
share/man/man9/byteorder.9 [new file with mode: 0644]
sys/net/ethernet.h
sys/net/if.c
sys/net/if.h
sys/sys/sockio.h