[ipv4] Redefine IP address constants to avoid unnecessary byte swapping
authorMichael Brown <mcb30@ipxe.org>
Tue, 21 Jul 2015 14:26:52 +0000 (15:26 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 28 Jul 2015 12:48:29 +0000 (13:48 +0100)
commit6efcabd4151538781053716bec1c7eccd759df26
tree44d56878eb316b864d172d228c80aa1bf3596e40
parent9c185e2eac39561c2e9847c355c5b710c3e557b5
[ipv4] Redefine IP address constants to avoid unnecessary byte swapping

Redefine various IPv4 address constants and testing macros to avoid
unnecessary byte swapping at runtime, and slightly rename the macros
to prevent code from accidentally using the old definitions.

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