]> git.baikalelectronics.ru Git - kernel.git/commit
fib_rules: fix suppressor names and default values
authorStefan Tomanek <stefan.tomanek@wertarbyte.de>
Sat, 3 Aug 2013 12:14:43 +0000 (14:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Aug 2013 17:40:23 +0000 (10:40 -0700)
commitf1d8f6c49801944592d720171c243bdc1bad8815
treef3b64e87cc6ce4d7749ddfd9e993421b0c53a02c
parent440c629a4cc5f6ca81e23eb13c089c4b7716a945
fib_rules: fix suppressor names and default values

This change brings the suppressor attribute names into line; it also changes
the data types to provide a more consistent interface.

While -1 indicates that the suppressor is not enabled, values >= 0 for
suppress_prefixlen or suppress_ifgroup  reject routing decisions violating the
constraint.

This changes the previously presented behaviour of suppress_prefixlen, where a
prefix length _less_ than the attribute value was rejected. After this change,
a prefix length less than *or* equal to the value is considered a violation of
the rule constraint.

It also changes the default values for default and newly added rules (disabling
any suppression for those).

Signed-off-by: Stefan Tomanek <stefan.tomanek@wertarbyte.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/fib_rules.h
include/uapi/linux/fib_rules.h
net/core/fib_rules.c
net/ipv4/fib_rules.c
net/ipv6/fib6_rules.c