ref: fc6cc079fe40d2832e42d2cd2f764b2b575959b2
parent: 207cd2812f49e786a95184b296e82452fd7bd717
author: cinap_lenrek <[email protected]>
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)