]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(IN_CLASSC): Correct mask.
authorUlrich Drepper <drepper@redhat.com>
Mon, 3 Aug 1998 18:43:06 +0000 (18:43 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 3 Aug 1998 18:43:06 +0000 (18:43 +0000)
sysdeps/generic/netinet/in.h
sysdeps/unix/sysv/linux/netinet/in.h

index 44949c3dfb6b371162652fac3ec470e37c3ddedd..0baaa1d5ff0c3ca8a8261161dcbf5dc4c3276a95 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,94,95,96,97,98 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or modify
@@ -113,7 +113,7 @@ struct in_addr
 #define        IN_CLASSB_HOST          (0xffffffff & ~IN_CLASSB_NET)
 #define        IN_CLASSB_MAX           65536
 
-#define        IN_CLASSC(a)            ((((unsigned) (a)) & 0xc0000000) == 0xc0000000)
+#define        IN_CLASSC(a)            ((((unsigned) (a)) & 0xe0000000) == 0xc0000000)
 #define        IN_CLASSC_NET           0xffffff00
 #define        IN_CLASSC_NSHIFT        8
 #define        IN_CLASSC_HOST          (0xffffffff & ~IN_CLASSC_NET)
index 1d3641b75cd0bc380c6607089edebaf728d37dae..9bb0d5d4ac1e24d15af1691bea4e7201f6ad8629 100644 (file)
@@ -111,7 +111,7 @@ struct in_addr
 #define        IN_CLASSB_HOST          (0xffffffff & ~IN_CLASSB_NET)
 #define        IN_CLASSB_MAX           65536
 
-#define        IN_CLASSC(a)            ((((unsigned) (a)) & 0xc0000000) == 0xc0000000)
+#define        IN_CLASSC(a)            ((((unsigned) (a)) & 0xe0000000) == 0xc0000000)
 #define        IN_CLASSC_NET           0xffffff00
 #define        IN_CLASSC_NSHIFT        8
 #define        IN_CLASSC_HOST          (0xffffffff & ~IN_CLASSC_NET)