]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: nexthop: parse attributes into nh entry structure before printing
authorNikolay Aleksandrov <nikolay@nvidia.com>
Thu, 30 Sep 2021 11:38:38 +0000 (14:38 +0300)
committerDavid Ahern <dsahern@kernel.org>
Mon, 4 Oct 2021 00:24:28 +0000 (18:24 -0600)
commit945c26db686b607cea50779240e96b066ae43b07
tree840e3935adcb10f9044d8c187ee34c562e474bb7
parent7ec1cee630e3ed2259f2b310d091a75ba245dd78
ip: nexthop: parse attributes into nh entry structure before printing

Factor out the nexthop attribute parsing and parse attributes into a
nexthop entry structure which is then used to print.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipnexthop.c