aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_netlink.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-18 15:26:55 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-18 15:26:55 +0200
commitd106c8956ca335b47a28c49c6821c0600eff4af9 (patch)
tree33ee13ebf36e6a4cbdbd1c25a5ee5a73f3ab659a /pingu_netlink.c
parenta6a0c88823b42e4c789b156106d64002b387d291 (diff)
downloadpingu-d106c8956ca335b47a28c49c6821c0600eff4af9.tar.bz2
pingu-d106c8956ca335b47a28c49c6821c0600eff4af9.tar.xz
pingu_netlink: create nexthop route even if its alone
Otherwise it will not adjust the default route if one of the ISPs goes down.
Diffstat (limited to 'pingu_netlink.c')
-rw-r--r--pingu_netlink.c4
1 files changed, 1 insertions, 3 deletions
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;
}