1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-19 05:58:53 +02:00
openwrt/package
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
..
base-files base-files: make default_prerm work offline 2016-09-26 17:57:57 +02:00
boot uboot-mvebu: reset the 88E1512 PHY to make the wan port work 2016-09-26 13:03:18 +02:00
devel perf: drop sched_getcpu wrapper 2016-08-23 22:47:43 +02:00
firmware linux-firmware: update to current Git head 2016-09-23 12:11:06 +02:00
kernel mac80211: backport brcmfmac changes from 2016-09-26 2016-09-27 07:00:53 +02:00
libs openssl: backport build fix when hardware support is used 2016-09-24 19:53:00 +02:00
network 6in4: fix invalid local variable declaration (FS#188) 2016-09-27 16:23:06 +02:00
system fstools: mark as nonshared and add missing PKG_CONFIG_DEPENDS 2016-09-25 23:26:25 +02:00
utils iproute: properly support high routing table IDs 2016-09-27 16:23:06 +02:00
Makefile image: fix CONFIG_CLEAN_IPKG with CONFIG_TARGET_PER_DEVICE_ROOTFS 2016-09-25 09:30:55 +02:00