]> granicus.if.org Git - libnl/commit
Only use the MULTIPATH attribute when adding routes with more than one next hop.
authorMichael Altizer <xiche@verizon.net>
Sun, 9 Oct 2011 21:02:36 +0000 (17:02 -0400)
committerThomas Graf <tgraf@redhat.com>
Mon, 10 Oct 2011 09:44:10 +0000 (11:44 +0200)
commit790966d69aea9aea304caed22486834ba55eb5c7
treef0926bcea766551444f7a1204d09da1a17ca35db
parent6c70cf7d72db62b65de6d5ee810f0c606313fbce
Only use the MULTIPATH attribute when adding routes with more than one next hop.

Only use the MULTIPATH attribute when adding routes with more than one
next hop.
This solves issues with two scenarios:
1. Adding an IPv4 route to a kernel configured without
CONFIG_IP_ROUTE_MULTIPATH=y.
2. Adding an IPv6 route in general, since the MULTIPATH attribute is not
supported there.

Signed-off-by: Michael Altizer <xiche@verizon.net>
lib/route/route_obj.c