From d106c8956ca335b47a28c49c6821c0600eff4af9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 18 Aug 2011 15:26:55 +0200 Subject: pingu_netlink: create nexthop route even if its alone Otherwise it will not adjust the default route if one of the ISPs goes down. --- pingu_netlink.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pingu_netlink.c') diff --git a/pingu_netlink.c b/pingu_netlink.c index 2109cc4..b794394 100644 --- a/pingu_netlink.c +++ b/pingu_netlink.c @@ -366,12 +366,10 @@ int netlink_route_multipath(struct netlink_fd *fd, int action_type, &dest); count = add_nexthops(&req.nlh, sizeof(req), iface_list); - if (count > 1) { + if (count > 0) { return sendto(fd->fd, (void *) &req, sizeof(req), 0, (struct sockaddr *) &addr, sizeof(addr)); } - if (count == 1) - log_debug("Not load-balancing a single gateway"); return 0; } -- cgit v1.2.3