The NextHopBuffer used with RTA_MULTIPATH attributes can contain more
than just RTA_GATEWAY - it can also currently contain RTA_VIA,
RTA_FLOW, RTA_ENCAP and RTA_ENCAP_TYPE attributes, and more could be
added in the future.
So extend the NextHop struct to store a Vec for all these other
possible attributes, reusing the route Nla type, and emit and parse
them accordingly.
This is unfortunately an API-breaking change, but is done in a way
that limit breakages as much as possible.
The NextHopBuffer used with RTA_MULTIPATH attributes can contain more than just RTA_GATEWAY - it can also currently contain RTA_VIA, RTA_FLOW, RTA_ENCAP and RTA_ENCAP_TYPE attributes, and more could be added in the future.
So extend the NextHop struct to store a Vec for all these other
possible attributes, reusing the route Nla type, and emit and parse
them accordingly.
This is unfortunately an API-breaking change, but is done in a way that limit breakages as much as possible.