diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-18 15:26:55 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-18 15:26:55 +0200 |
commit | d106c8956ca335b47a28c49c6821c0600eff4af9 (patch) | |
tree | 33ee13ebf36e6a4cbdbd1c25a5ee5a73f3ab659a /pingu_netlink.c | |
parent | a6a0c88823b42e4c789b156106d64002b387d291 (diff) | |
download | pingu-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.c | 4 |
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; } |