We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08907ae commit 1f1fe5bCopy full SHA for 1f1fe5b
libc/include/llvm-libc-macros/netinet-in-macros.h
@@ -9,6 +9,9 @@
9
#ifndef LLVM_LIBC_MACROS_NETINET_IN_MACROS_H
10
#define LLVM_LIBC_MACROS_NETINET_IN_MACROS_H
11
12
+#include "../llvm-libc-types/in_addr_t.h"
13
+#include "__llvm-libc-common.h"
14
+
15
#define IPPROTO_IP 0
16
#define IPPROTO_ICMP 1
17
#define IPPROTO_TCP 6
@@ -24,4 +27,10 @@
24
27
#define IPV6_LEAVE_GROUP 21
25
28
#define IPV6_V6ONLY 26
26
29
30
+#define INADDR_ANY __LLVM_LIBC_CAST(static_cast, in_addr_t, 0x00000000)
31
+#define INADDR_BROADCAST __LLVM_LIBC_CAST(static_cast, in_addr_t, 0xffffffff)
32
33
+#define INET_ADDRSTRLEN 16
34
+#define INET6_ADDRSTRLEN 46
35
36
#endif // LLVM_LIBC_MACROS_NETINET_IN_MACROS_H
0 commit comments