[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:
committed by
David S. Miller
parent
96750162b5
commit
1e637c74b0
@@ -176,7 +176,7 @@ static inline unsigned __inet_dev_addr_type(struct net *net,
|
||||
unsigned ret = RTN_BROADCAST;
|
||||
struct fib_table *local_table;
|
||||
|
||||
if (ipv4_is_zeronet(addr) || ipv4_is_badclass(addr))
|
||||
if (ipv4_is_zeronet(addr) || ipv4_is_lbcast(addr))
|
||||
return RTN_BROADCAST;
|
||||
if (ipv4_is_multicast(addr))
|
||||
return RTN_MULTICAST;
|
||||
|
Reference in New Issue
Block a user