]> git.proxmox.com Git - mirror_iproute2.git/commit
ip: lwtunnel: seg6: bail out if table ids are invalid
authorAndrea Claudi <aclaudi@redhat.com>
Mon, 22 Feb 2021 20:23:01 +0000 (21:23 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 23 Feb 2021 02:11:48 +0000 (18:11 -0800)
commite833dbe140c529ab0b50eaa01ef37cb7b1c00e22
tree070afe4e240115cbb0f4a257c8a13588d518e730
parent546f738220e7d492d3ea47d4b85f11487a0dae87
ip: lwtunnel: seg6: bail out if table ids are invalid

When table and vrftable are used in SRv6, ip should bail out if table
ids are not valid, and return a proper error message to the user.

Achieve this simply checking rtnl_rttable_a2n return value, as we
already do in the rest of iproute.

Fixes: 0486388a877a ("add support for table name in SRv6 End.DT* behaviors")
Fixes: 69629b4e43c4 ("seg6: add support for vrftable attribute in SRv6 End.DT4/DT6 behaviors")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iproute_lwtunnel.c