summaryrefslogtreecommitdiffstats
path: root/src/monitor/monitor_netlink.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-09-03 18:50:35 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-09-06 14:40:13 -0400
commit4745ac57b7fb4ab071ee8f9b3386c5f4941a1561 (patch)
tree2a30261b0d242d42116a3803862c02eb6c4085d9 /src/monitor/monitor_netlink.c
parent7ad4202cbb7b0fd302a2fb586c431d7dd8375460 (diff)
downloadsssd-4745ac57b7fb4ab071ee8f9b3386c5f4941a1561.tar.gz
sssd-4745ac57b7fb4ab071ee8f9b3386c5f4941a1561.tar.xz
sssd-4745ac57b7fb4ab071ee8f9b3386c5f4941a1561.zip
Change libnl monitor callback to only signal going online
This feature was not used and would probably never be used, because it is much safer to rely on online actions to time out. Moreover, it would make implementing the new features more complex.
Diffstat (limited to 'src/monitor/monitor_netlink.c')
-rw-r--r--src/monitor/monitor_netlink.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/monitor/monitor_netlink.c b/src/monitor/monitor_netlink.c
index 33be7c850..cbf717fc3 100644
--- a/src/monitor/monitor_netlink.c
+++ b/src/monitor/monitor_netlink.c
@@ -250,9 +250,7 @@ static void link_msg_handler(struct nl_object *obj, void *arg)
/* IFF_LOWER_UP is the indicator of carrier status */
if (flags & IFF_LOWER_UP) {
- ctx->change_cb(NL_ROUTE_UP, ctx->cb_data);
- } else {
- ctx->change_cb(NL_ROUTE_DOWN, ctx->cb_data);
+ ctx->change_cb(ctx->cb_data);
}
}