Explorar o código

Merge pull request #1177 from zhaojuntao/IN6_IS_ADDR_MULTICAST

[dfs] add IN6_IS_ADDR_MULTICAST support
Bernard Xiong %!s(int64=7) %!d(string=hai) anos
pai
achega
627a90c2d0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      components/dfs/filesystems/net/netinet/in.h

+ 4 - 0
components/dfs/filesystems/net/netinet/in.h

@@ -27,4 +27,8 @@
 
 #include <lwip/sockets.h>
 
+#ifndef IN6_IS_ADDR_MULTICAST
+#define IN6_IS_ADDR_MULTICAST(a) (((uint8_t *) (a))[0] == 0xff)
+#endif
+
 #endif