From 1d2fc4e1c652fa4b2385b2893d844fc4648c6762 Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Fri, 27 Apr 2012 17:33:17 +0300 Subject: 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(). --- src/rtnl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rtnl.c') 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); -- cgit v1.2.3