add IN_LOOPBACKNET constant (nonstandard but in reserved namespace)
authorRich Felker <dalias@aerifal.cx>
Wed, 6 Apr 2011 19:44:39 +0000 (15:44 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 6 Apr 2011 19:44:39 +0000 (15:44 -0400)
include/netinet/in.h

index 02a77ca..0336b10 100644 (file)
@@ -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