]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[ipv6] Fix definition of IN6_IS_ADDR_LINKLOCAL()
authorMichael Brown <mcb30@ipxe.org>
Wed, 21 May 2014 16:51:31 +0000 (17:51 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 21 May 2014 16:53:02 +0000 (17:53 +0100)
commit3c7f5f9c4ca535dbd2f86996f71342e685d4ce50
tree8652f404aaeeb60dbc9f64517199ac3712439c10
parent6cdd3bb6567b6e2fafa18db82bfb2c7d2bce9ebb
[ipv6] Fix definition of IN6_IS_ADDR_LINKLOCAL()

Fix an erroneous htonl() in the definition of IN6_IS_ADDR_LINKLOCAL(),
and add self-tests for the IN6_IS_ADDR_xxx() family of macros.

Reported-by: Marin Hannache <git@mareo.fr>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/in.h
src/tests/ipv6_test.c