diff options
Diffstat (limited to 'include/linux/in.h')
-rw-r--r-- | include/linux/in.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/in.h b/include/linux/in.h index 3975cbf52f20..a8f00cac8f79 100644 --- a/include/linux/in.h +++ b/include/linux/in.h | |||
@@ -253,6 +253,14 @@ struct sockaddr_in { | |||
253 | #define ZERONET(x) (((x) & htonl(0xff000000)) == htonl(0x00000000)) | 253 | #define ZERONET(x) (((x) & htonl(0xff000000)) == htonl(0x00000000)) |
254 | #define LOCAL_MCAST(x) (((x) & htonl(0xFFFFFF00)) == htonl(0xE0000000)) | 254 | #define LOCAL_MCAST(x) (((x) & htonl(0xFFFFFF00)) == htonl(0xE0000000)) |
255 | 255 | ||
256 | /* Special-Use IPv4 Addresses (RFC3330) */ | ||
257 | #define PRIVATE_10(x) (((x) & htonl(0xff000000)) == htonl(0x0A000000)) | ||
258 | #define LINKLOCAL_169(x) (((x) & htonl(0xffff0000)) == htonl(0xA9FE0000)) | ||
259 | #define PRIVATE_172(x) (((x) & htonl(0xfff00000)) == htonl(0xAC100000)) | ||
260 | #define TEST_192(x) (((x) & htonl(0xffffff00)) == htonl(0xC0000200)) | ||
261 | #define ANYCAST_6TO4(x) (((x) & htonl(0xffffff00)) == htonl(0xC0586300)) | ||
262 | #define PRIVATE_192(x) (((x) & htonl(0xffff0000)) == htonl(0xC0A80000)) | ||
263 | #define TEST_198(x) (((x) & htonl(0xfffe0000)) == htonl(0xC6120000)) | ||
256 | #endif | 264 | #endif |
257 | 265 | ||
258 | #endif /* _LINUX_IN_H */ | 266 | #endif /* _LINUX_IN_H */ |