devip: fix isula()

ULA prefix is 0xfc00::/7 not 0xfd00::/8.
This commit is contained in:
cinap_lenrek 2024-01-24 20:51:07 +00:00
parent 207cd2812f
commit fc6cc079fe

View file

@ -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)