* Karl Auer | 2011-03-06 09:28:06 [+1100]: >Linux treats link local addresses as being in a /64: > >wlan0 [...] > inet6 addr: fe80::222:fbff:fe54:9b80/64 Scope:Link > [...]
Yes (Linux): if ((st & htonl(0xFFC00000)) == htonl(0xFE800000)) return (IPV6_ADDR_LINKLOCAL | IPV6_ADDR_UNICAST | IPV6_ADDR_SCOPE_TYPE(IPV6_ADDR_SCOPE_LINKLOCAL)); as well as *BSD: #define IN6_IS_ADDR_LINKLOCAL(a) \ (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80)) Best regards, Hagen -------------------------------------------------------------------- IETF IPv6 working group mailing list ipv6@ietf.org Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6 --------------------------------------------------------------------