diff options
author | Andreas Henriksson <[email protected]> | 2013-11-07 18:26:38 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2013-11-08 14:53:10 -0500 |
commit | 13eb2ab2d33c57ebddc57437a7d341995fc9138c (patch) | |
tree | 909a64b9d64f47c10060791ab351740ca9c6ecd8 /tools/perf/util/trace-event-scripting.c | |
parent | 394055f6fabd077e74815865f01a73a31dd765d3 (diff) |
net: Fix "ip rule delete table 256"
When trying to delete a table >= 256 using iproute2 the local table
will be deleted.
The table id is specified as a netlink attribute when it needs more then
8 bits and iproute2 then sets the table field to RT_TABLE_UNSPEC (0).
Preconditions to matching the table id in the rule delete code
doesn't seem to take the "table id in netlink attribute" into condition
so the frh_get_table helper function never gets to do its job when
matching against current rule.
Use the helper function twice instead of peaking at the table value directly.
Originally reported at: http://bugs.debian.org/724783
Reported-by: Nicolas HICHER <[email protected]>
Signed-off-by: Andreas Henriksson <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions