openwrt/package/utils/busybox
Jo-Philipp Wich 8badcba229 iproute: properly support high routing table IDs
The Linux kernel uses two distinct fields to denote the routing table ID in
use by network routes; the 8 bit `rtm_table` member of `struct rtmsg` and the
32 bit `RTA_TABLE` netlink attribute.

If a routing table ID is larger than 255, the `RT_TABLE` attribute must be used
and the `rtm_table` field has to be set to the special `RT_TABLE_UNSPEC` value.

This commit adds a patch which...
 - switches the *_n2a() and *_a2n() functions of rt_names.c to use dynamically
   sized, name-sorted arrays instead of fixed arrays limited to 1024 slots in
   order to support IDs up to 65535
 - adds proper handling of high table IDs to iprule.c and iproute.c when
   adding, removing and dumping ip rules and network routes

After this change, the Busybox ip applet fully supports IP rules with high ID
numbers, using the same logic as the full iproute2.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-09-27 16:23:06 +02:00
..
config busybox: update to version 1.25.0 2016-09-20 22:37:02 +02:00
files sysntpd: remove procd_open_trigger/procd_close_trigger calls 2016-07-29 16:41:08 +02:00
patches iproute: properly support high routing table IDs 2016-09-27 16:23:06 +02:00
Config-defaults.in busybox: update to version 1.25.0 2016-09-20 22:37:02 +02:00
Config.in busybox: include config files relative to the main Config.in (#18522) 2014-12-12 12:33:34 +00:00
convert_defaults.pl busybox: add a reworked implementation of menuconfig support, this time with a guard option that keeps all symbols at default values until an extra option is activated 2014-01-31 13:50:16 +00:00
convert_menuconfig.pl busybox: adjust convert_menuconfig.pl to emit relative path references for Config.in files and refresh generated files 2016-01-03 11:38:31 +00:00
Makefile iproute: properly support high routing table IDs 2016-09-27 16:23:06 +02:00