[ipv4] Rewrite inet_aton()
authorMichael Brown <mcb30@ipxe.org>
Thu, 19 Feb 2015 14:02:07 +0000 (14:02 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 19 Feb 2015 14:02:07 +0000 (14:02 +0000)
commitbb1abb2b213adceb606ff458e3786c8c2ea4dc8a
tree95b4a41c9a1374798662f4a61e193de1a1836753
parent095c007aa35259b9eb7c91d7f5c3484e8d14a7b1
[ipv4] Rewrite inet_aton()

The implementation of inet_aton() has an unknown provenance.  Rewrite
this code to avoid potential licensing uncertainty.

Also move the code from core/misc.c to its logical home in net/ipv4.c,
and add a few extra test cases.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/core/misc.c
src/net/ipv4.c
src/tests/ipv4_test.c