ref: 25f0866780ccb9bceaeeae2fe1871fd328f06513
parent: 8c796aea62ed04f002a06fe6d06480bef907c7f0
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jan 24 15:51:07 EST 2024
devip: fix isula() ULA prefix is 0xfc00::/7 not 0xfd00::/8.
--- a/sys/src/9/ip/ipv6.h
+++ b/sys/src/9/ip/ipv6.h
@@ -16,7 +16,7 @@
*/
#define isv6mcast(addr) ((addr)[0] == 0xff)
#define islinklocal(addr) ((addr)[0] == 0xfe && ((addr)[1] & 0xc0) == 0x80)
-#define isula(addr) ((addr)[0] == 0xfd)
+#define isula(addr) (((addr)[0] & 0xfe) == 0xfc)
#define optexsts(np) (nhgets((np)->ploadlen) > 24)
#define issmcast(addr) (memcmp((addr), v6solicitednode, 13) == 0)
--
⑨