diff options
author | Lukasz Nowak | 2016-12-13 12:58:31 +0000 |
---|---|---|
committer | Denys Vlasenko | 2016-12-18 18:56:49 +0100 |
commit | b42107f21538e39d9a344376372f8261aed589b2 (patch) | |
tree | 34f0f4e836067be6c19a931e16d661eb47db162a /modutils/Config.src | |
parent | e184a883567ee3fd735644416e4bd683f1894ac5 (diff) | |
download | busybox-b42107f21538e39d9a344376372f8261aed589b2.zip busybox-b42107f21538e39d9a344376372f8261aed589b2.tar.gz |
libiproute: handle table ids larger than 255
Linux kernel, starting from 2.6.19 allows ip table ids to have 32-bit values.
In order to preserve compatibility, the old 8-bit field: rtm_table is still
in use when table id is lower than 256.
Add support for the 32-bit table id (RTA_TABLE attribute) in:
- ip route print
- ip route modify
- ip rule print
- ip rule modify
Add printing of table ids to ip route.
Changes are compatible with the mainline iproute2 utilities.
These changes are required for compatibility with ConnMan, which by default
uses table ids greater than 255.
function old new delta
print_route 1588 1637 +49
do_iproute 2187 2222 +35
do_iprule 955 987 +32
print_rule 617 630 +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 4/0 up/down: 129/0) Total: 129 bytes
Signed-off-by: Lukasz Nowak <lnowak@tycoint.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/Config.src')
0 files changed, 0 insertions, 0 deletions