mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
[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>
This commit is contained in:
parent
96750162b5
commit
1e637c74b0
5 changed files with 12 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue