openwrtv3/package/utils
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
..
admswconfig package: flag further target specific packages as nonshared 2016-04-26 23:26:43 +02:00
bsdiff bsdiff: add missing host build dependency on bzip2 (fixes #21990) 2016-03-07 14:34:14 +00:00
busybox iproute: properly support high routing table IDs 2016-09-27 16:23:06 +02:00
bzip2 bzip2: install to STAGING_DIR/host instead of STAGING_DIR/host/usr 2016-01-20 22:59:29 +00:00
ct-bugcheck ct-bugcheck: Add tools to poll for and report ath10k firmware crashes. 2016-08-28 13:51:41 +02:00
e2fsprogs e2fsprogs: List all libraries explicitly 2016-09-08 13:40:03 +02:00
f2fs-tools f2fs-tools: import from packages, clean up, and update to latest 2016-09-08 15:28:38 +02:00
fbtest fbtest: remove bogus #include 2015-03-29 04:28:29 +00:00
fuse cosmetic: remove trailing whitespaces 2015-10-15 22:12:13 +00:00
jsonfilter jsonfilter: update to latest git HEAD 2016-07-02 10:16:18 +02:00
lua treewide: replace jow@openwrt.org with jo@mein.io 2016-06-07 11:42:52 +02:00
mdadm treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mtd-utils mtd-utils: merge ubi/nand-utils into one package 2016-07-11 14:19:47 +02:00
nvram nvram: install init.d quirks script on brcm47xx only 2016-05-20 22:33:15 +02:00
oseama oseama: support extracting entity 2016-06-13 22:53:07 +02:00
otrx package: remove duplicate lines from otrx and nvram makefiles 2016-04-26 23:28:17 +02:00
px5g px5g: Create mbedtls variant 2016-07-05 22:59:12 +02:00
px5g-standalone px5g-standalone: activate format-security checks 2015-11-22 14:16:09 +00:00
spidev_test spidev_test: copy the source code into the package folder 2016-06-30 22:48:39 +02:00
ugps ugps: update to latest git HEAD 2016-09-05 07:27:15 +02:00
usbmode package/*: update git urls for project repos 2016-06-13 22:51:41 +02:00
usbreset license info - revert r43155 2014-11-03 09:56:44 +00:00
usbutils treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
util-linux util-linux: fix scanf fallback detection for uClibc-ng 2016-06-05 23:23:57 +02:00
xfsprogs xfsprogs: activate format-security checks 2015-11-22 14:13:47 +00:00