This just avoid unnecessary routes in the ovs-router. Signed-off-by: Pravin B Shelar <pshe...@nicira.com> --- lib/ovs-router.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/lib/ovs-router.c b/lib/ovs-router.c index 9b64ffb..3b11512 100644 --- a/lib/ovs-router.c +++ b/lib/ovs-router.c @@ -130,6 +130,7 @@ get_src_addr(const struct in6_addr *ip6_dst, { struct in6_addr *mask, *addr6; int err, n_in6, i, max_plen = -1; + enum netdev_flags flags; struct netdev *dev; err = netdev_open(output_bridge, NULL, &dev); @@ -137,6 +138,11 @@ get_src_addr(const struct in6_addr *ip6_dst, return err; } + err = netdev_get_flags(dev, &flags); + if (err || (flags & NETDEV_LOOPBACK)) { + return -EINVAL; + } + err = netdev_get_addr_list(dev, &addr6, &mask, &n_in6); if (err) { goto out; -- 2.5.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev