1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-10-18 21:48:23 +02:00
openwrt/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
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
fuse
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
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
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