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 02a77ca5fb15b47d5ab7d8c05944c5590813c97c..0336b1045e00ad8fa64b0773475d7128d23b87de 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