Explorar o código

add IN_LOOPBACKNET constant (nonstandard but in reserved namespace)

Rich Felker %!s(int64=14) %!d(string=hai) anos
pai
achega
2b55a619e4
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      include/netinet/in.h

+ 2 - 0
include/netinet/in.h

@@ -153,4 +153,6 @@ uint16_t ntohs(uint16_t);
 #define	IN_EXPERIMENTAL(a)	((((in_addr_t)(a)) & 0xe0000000) == 0xe0000000)
 #define	IN_BADCLASS(a)		((((in_addr_t)(a)) & 0xf0000000) == 0xf0000000)
 
+#define IN_LOOPBACKNET 127
+
 #endif