Commit 44395d81 authored by Olivier Crête's avatar Olivier Crête

address: Correctly identify ipv6 link local

The test for fe80::/10 always returned FALSE.
parent d4a7c37c
...@@ -339,7 +339,7 @@ ipv6_address_is_private (const guchar *addr) ...@@ -339,7 +339,7 @@ ipv6_address_is_private (const guchar *addr)
{ {
return ( return (
/* fe80::/10 */ /* fe80::/10 */
((addr[0] == 0xfe) && ((addr[1] & 0xc) == 0x80)) || ((addr[0] == 0xfe) && ((addr[1] & 0xc0) == 0x80)) ||
/* fc00::/7 */ /* fc00::/7 */
((addr[0] & 0xfe) == 0xfc) || ((addr[0] & 0xfe) == 0xfc) ||
/* ::1 loopback */ /* ::1 loopback */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment