diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-04-27 17:33:17 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-04-27 16:45:01 +0200 |
commit | 1d2fc4e1c652fa4b2385b2893d844fc4648c6762 (patch) | |
tree | c73c7868e7dfc8f3c37916a9a0e7c8319ef9fa62 /src/rtnl.c | |
parent | b9d16f7fe9c5f42cd14b5839a81deae3ccd94c14 (diff) | |
download | connman-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |