]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv4: Add extack message for invalid prefix or length
authorDavid Ahern <dsahern@gmail.com>
Sat, 27 May 2017 22:19:26 +0000 (16:19 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 15:55:31 +0000 (11:55 -0400)
commit848dd09e78e2fee4a896d690237123f50ab808aa
treead1f4fd34da0b9faee5219a3490cbf729228ba96
parent91e5c8137374fcd50d5325ac86942f52a3fd9bb8
net: ipv4: Add extack message for invalid prefix or length

Add extack error message for invalid prefix length and invalid prefix.
Example of the latter is a route spec containing 172.16.100.1/24, where
the /24 mask means the lower 8-bits should be 0. Amazing how easy that
one is to overlook when an EINVAL is returned.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_frontend.c
net/ipv4/fib_trie.c