summaryrefslogtreecommitdiffstats
path: root/include/linux/in.h
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2008-01-21 03:18:08 -0800
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:08:44 -0800
commit1e637c74b0f84eaca02b914c0b8c6f67276e9697 (patch)
tree18e42bbac80529c36ac3e6a8e5b68538e0db10df /include/linux/in.h
parent96750162b5f7350ec7ba7cf747a6623858d65dd2 (diff)
downloadop-kernel-dev-1e637c74b0f84eaca02b914c0b8c6f67276e9697.zip
op-kernel-dev-1e637c74b0f84eaca02b914c0b8c6f67276e9697.tar.gz
[IPV4]: Enable use of 240/4 address space.
This short patch modifies the IPv4 networking to enable use of the 240.0.0.0/4 (aka "class-E") address space as propsed in the internet draft draft-fuller-240space-00.txt. Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/in.h')
-rw-r--r--include/linux/in.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/in.h b/include/linux/in.h
index 27d8a5a..70c6df8 100644
--- a/include/linux/in.h
+++ b/include/linux/in.h
@@ -262,9 +262,10 @@ static inline bool ipv4_is_local_multicast(__be32 addr)
return (addr & htonl(0xffffff00)) == htonl(0xe0000000);
}
-static inline bool ipv4_is_badclass(__be32 addr)
+static inline bool ipv4_is_lbcast(__be32 addr)
{
- return (addr & htonl(0xf0000000)) == htonl(0xf0000000);
+ /* limited broadcast */
+ return addr == INADDR_BROADCAST;
}
static inline bool ipv4_is_zeronet(__be32 addr)
OpenPOWER on IntegriCloud