(IN_CLASSC): Correct mask.
authordrepper <drepper>
Mon, 3 Aug 1998 16:38:34 +0000 (16:38 +0000)
committerdrepper <drepper>
Mon, 3 Aug 1998 16:38:34 +0000 (16:38 +0000)
inet/netinet/in.h

index ddc0975..418c6f9 100644 (file)
@@ -118,7 +118,7 @@ struct in_addr
 #define        IN_CLASSB_HOST          (0xffffffff & ~IN_CLASSB_NET)
 #define        IN_CLASSB_MAX           65536
 
-#define        IN_CLASSC(a)            ((((uint32_t) (a)) & 0xc0000000) == 0xc0000000)
+#define        IN_CLASSC(a)            ((((uint32_t) (a)) & 0xe0000000) == 0xc0000000)
 #define        IN_CLASSC_NET           0xffffff00
 #define        IN_CLASSC_NSHIFT        8
 #define        IN_CLASSC_HOST          (0xffffffff & ~IN_CLASSC_NET)