network: route: read RTA_TABLE attribute to get route table
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Nov 2021 10:38:24 +0000 (19:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Nov 2021 18:53:09 +0000 (03:53 +0900)
commit5e82a6137546d3a2ac403df261732076130356a8
tree0dd1b3c8ae33aeed3371e1488e6c612d2cd541f0
parentaf31670340af68d3d200f8b769a917c3477b3ccf
network: route: read RTA_TABLE attribute to get route table

If the table of a route is larger than 255, then the value is stored in
RTA_TABLE attribute. But the attribute is not supported by old kernels.
So, first try to read the value from RTA_TABLE attribute, then fallback
to the value in the message header.
src/network/networkd-route.c