patch-1.3.10 linux/include/linux/in.h
Next file: linux/include/linux/netdevice.h
Previous file: linux/include/linux/if_ppp.h
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu Jul 13 07:44:23 1995
- Orig file:
v1.3.9/linux/include/linux/in.h
- Orig date:
Fri Jul 7 08:54:54 1995
diff -u --recursive --new-file v1.3.9/linux/include/linux/in.h linux/include/linux/in.h
@@ -118,4 +118,12 @@
#include <asm/byteorder.h>
+/* Some random defines to make it easier in the kernel.. */
+#ifdef __KERNEL__
+
+#define LOOPBACK(x) (((x) & htonl(0xff000000)) == htonl(0x7f000000))
+#define MULTICAST(x) (((x) & htonl(0xf0000000)) == htonl(0xe0000000))
+
+#endif
+
#endif /* _LINUX_IN_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this