diff options
author | Stefan Tomanek <stefan.tomanek@wertarbyte.de> | 2013-08-03 14:14:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-03 19:40:23 +0200 |
commit | 73f5698e77219bfc3ea1903759fe8e20ab5b285e (patch) | |
tree | f3b64e87cc6ce4d7749ddfd9e993421b0c53a02c /net/ipv6/fib6_rules.c | |
parent | vlan: cleanup the usage of vlan_dev_priv(dev) (diff) | |
download | linux-73f5698e77219bfc3ea1903759fe8e20ab5b285e.tar.xz linux-73f5698e77219bfc3ea1903759fe8e20ab5b285e.zip |
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>
Diffstat (limited to 'net/ipv6/fib6_rules.c')
-rw-r--r-- | net/ipv6/fib6_rules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/fib6_rules.c b/net/ipv6/fib6_rules.c index 36283267e2f8..a6c58ce43d34 100644 --- a/net/ipv6/fib6_rules.c +++ b/net/ipv6/fib6_rules.c @@ -126,7 +126,7 @@ static bool fib6_rule_suppress(struct fib_rule *rule, struct fib_lookup_arg *arg /* do not accept result if the route does * not meet the required prefix length */ - if (rt->rt6i_dst.plen < rule->table_prefixlen_min) + if (rt->rt6i_dst.plen <= rule->suppress_prefixlen) goto suppress_route; /* do not accept result if the route uses a device |