summaryrefslogtreecommitdiff
path: root/src/rtnl.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-04-27 17:33:17 +0300
committerMarcel Holtmann <marcel@holtmann.org>2012-04-27 16:45:01 +0200
commit1d2fc4e1c652fa4b2385b2893d844fc4648c6762 (patch)
treec73c7868e7dfc8f3c37916a9a0e7c8319ef9fa62 /src/rtnl.c
parentb9d16f7fe9c5f42cd14b5839a81deae3ccd94c14 (diff)
downloadconnman-1d2fc4e1c652fa4b2385b2893d844fc4648c6762.tar.gz
connman-1d2fc4e1c652fa4b2385b2893d844fc4648c6762.tar.bz2
connman-1d2fc4e1c652fa4b2385b2893d844fc4648c6762.zip
ipconfig: Add ipconfig type to __connman_ipconfig_get_gateway_from_index()
In order to be able to request a certain ipconfig type, add the type as a parameter to __connman_ipconfig_get_gateway_from_index().
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);