summaryrefslogtreecommitdiff
path: root/src/rtnl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtnl.c')
-rw-r--r--src/rtnl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rtnl.c b/src/rtnl.c
index 251d9cd9..12939f41 100644
--- a/src/rtnl.c
+++ b/src/rtnl.c
@@ -291,7 +291,9 @@ static void trigger_rtnl(int index, void *user_data)
}
if (rtnl->newgateway) {
- const char *gateway = __connman_ipconfig_get_gateway_from_index(index);
+ const char *gateway =
+ __connman_ipconfig_get_gateway_from_index(index,
+ CONNMAN_IPCONFIG_TYPE_ALL);
if (gateway != NULL)
rtnl->newgateway(index, gateway);