hush/networking/libiproute
Lukasz Nowak b42107f215 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>
2016-12-18 18:56:49 +01:00
..
ip_common.h networking: add 'ip neigh' command 2015-10-14 12:53:47 +02:00
ip_parse_common_args.c libiproute: rename invarg(a,b) to invarg_1_to_2(a,b) 2015-10-14 13:21:01 +02:00
ipaddress.c *: hopefully all setup_common_bufsiz() are in place 2016-04-21 18:38:51 +02:00
iplink.c libiproute: rename invarg(a,b) to invarg_1_to_2(a,b) 2015-10-14 13:21:01 +02:00
ipneigh.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
iproute.c libiproute: handle table ids larger than 255 2016-12-18 18:56:49 +01:00
iprule.c libiproute: handle table ids larger than 255 2016-12-18 18:56:49 +01:00
iptunnel.c libiproute: make rt_addr_n2a() and format_host() return auto strings 2015-10-14 13:56:42 +02:00
Kbuild.src networking: add 'ip neigh' command 2015-10-14 12:53:47 +02:00
libnetlink.c libnetlink: fix alignment of netlink messages 2016-09-18 22:55:47 +02:00
libnetlink.h whitespace cleanup 2010-10-29 11:46:52 +02:00
ll_addr.c whitespace cleanup 2010-10-29 11:46:52 +02:00
ll_map.c libiproute: use if_nametoindex 2015-10-24 22:04:36 +02:00
ll_map.h libbb: auto_string() for efficient handling of temporary malloced stirngs 2015-10-09 17:59:56 +02:00
ll_proto.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
ll_types.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
rt_names.c iproute: more string reuse 2015-10-08 17:15:08 +02:00
rt_names.h libiproute: use itoa() where appropriate 2015-10-08 13:02:28 +02:00
rtm_map.c libiproute: use itoa() where appropriate 2015-10-08 13:02:28 +02:00
rtm_map.h libiproute: use itoa() where appropriate 2015-10-08 13:02:28 +02:00
utils.c libiproute: make rt_addr_n2a() and format_host() return auto strings 2015-10-14 13:56:42 +02:00
utils.h libiproute: make rt_addr_n2a() and format_host() return auto strings 2015-10-14 13:56:42 +02:00