implement inet_lnaof, inet_netof, and inet_makeaddr
authorRich Felker <dalias@aerifal.cx>
Wed, 26 Jun 2013 01:35:49 +0000 (21:35 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 26 Jun 2013 01:35:49 +0000 (21:35 -0400)
commite40f48a421a9176e3e298b5bac75f0355b219e58
tree23255d3b92b410810a16eb5fd5853e3fe62bf05e
parent83966b369d2fa105a58a35830f75662e18273965
implement inet_lnaof, inet_netof, and inet_makeaddr

also move all legacy inet_* functions into a single file to avoid
wasting object file and compile time overhead on them.

the added functions are legacy interfaces for working with classful
ipv4 network addresses. they have no modern usefulness whatsoever, but
some programs unconditionally use them anyway, and they're tiny.
include/arpa/inet.h
src/network/inet_addr.c [deleted file]
src/network/inet_aton.c [deleted file]
src/network/inet_legacy.c [new file with mode: 0644]
src/network/inet_network.c [deleted file]
src/network/inet_ntoa.c [deleted file]