iproute2 identifiers >256
Ondrej Zajicek
santiago at crfreenet.org
Wed Apr 7 16:19:02 CEST 2021
On Wed, Apr 07, 2021 at 09:32:20AM -0400, Patrick Hemmer wrote:
> Right now it looks like the functionality of Bird that allows using
> iproute2 named identifiers (e.g. /etc/iproute2/rt_table as ipt_*) is
> restricted to values <=256
> (https://gitlab.nic.cz/labs/bird/-/blob/master/sysdep/unix/main.c#L197).
> However the linux kernel supports much larger values. I know it supports
> table identifiers up to 0xffffffff
> (https://github.com/torvalds/linux/blob/master/include/uapi/linux/rtnetlink.h#L337),
> but I'm not sure about the others like rt_protos.
Hi
This seems like a remnant of some past limitations. Update table and
realm/flow iproute2 named constants to 32bit values:
https://gitlab.nic.cz/labs/bird/-/commit/a2277975d787fb388e753432673acefd69454b1a
--
Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
More information about the Bird-users
mailing list