]> git.proxmox.com Git - mirror_frr.git/commit
Zebra: Fix handling of larger table-ids
authorvivek <vivek@cumulusnetworks.com>
Fri, 25 Mar 2016 05:01:11 +0000 (22:01 -0700)
committervivek <vivek@cumulusnetworks.com>
Fri, 25 Mar 2016 05:38:40 +0000 (22:38 -0700)
commitca46a78e872a8a991e7dc262d44c6e68860cf127
tree0b79ca7e61518d74ce37737d943426427b2e1889
parent1e22a2af507e0a51236d250e57145659754f81bb
Zebra: Fix handling of larger table-ids

Zebra code was not handling larger table-ids correctly. There were 2 issues:

a) In the netlink interface, RTA_TABLE was never sent or processed. This
pretty much limited the table-ids that zebra could understand to < 255.

b) In the interface into the zebra RIB (in particular for protocols), there
were some incorrect checks that again assumed the table id should be < 252
or be "main". This is valid only for the Default VRF (for now), for other
VRFs, the table-id should be the value learnt from the kernel.

These two issues are addressed with this change.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Ticket: CM-10087, CM-10091
Reviewed By: CCR-4359
Testing Done: Manual
zebra/rt_netlink.c
zebra/zebra_rib.c