diff options
author | Michael Brown <mcb30@ipxe.org> | 2014-05-21 17:51:31 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2014-05-21 17:53:02 +0100 |
commit | 3c7f5f9c4ca535dbd2f86996f71342e685d4ce50 (patch) | |
tree | 8652f404aaeeb60dbc9f64517199ac3712439c10 /src/include | |
parent | 6cdd3bb6567b6e2fafa18db82bfb2c7d2bce9ebb (diff) | |
download | ipxe-3c7f5f9c4ca535dbd2f86996f71342e685d4ce50.zip ipxe-3c7f5f9c4ca535dbd2f86996f71342e685d4ce50.tar.gz ipxe-3c7f5f9c4ca535dbd2f86996f71342e685d4ce50.tar.bz2 |
[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>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/in.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/in.h b/src/include/ipxe/in.h index 3603247..de96ca2 100644 --- a/src/include/ipxe/in.h +++ b/src/include/ipxe/in.h @@ -61,7 +61,7 @@ struct in6_addr { #define IN6_IS_ADDR_LINKLOCAL( addr ) \ ( ( *( ( const uint16_t * ) (addr) ) & htons ( 0xffc0 ) ) == \ - htonl ( 0xfe80 ) ) + htons ( 0xfe80 ) ) /** * IPv4 socket address |