Browse Source

add IN_LOOPBACKNET constant (nonstandard but in reserved namespace)

Rich Felker 14 years ago
parent
commit
2b55a619e4
1 changed files with 2 additions and 0 deletions
  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