gsmdial: Update to the new API

This commit is contained in:
Zhenhua Zhang 2010-06-25 11:19:05 +08:00 committed by Denis Kenzior
parent 588db02354
commit 8be0707ab0
1 changed files with 3 additions and 2 deletions

View File

@ -221,13 +221,14 @@ out:
return FALSE;
}
static void ppp_connect(const char *iface, const char *ip,
static void ppp_connect(const char *iface, const char *local, const char *peer,
const char *dns1, const char *dns2,
gpointer user_data)
{
/* print out the negotiated address and dns server */
g_print("Network Device: %s\n", iface);
g_print("IP Address: %s\n", ip);
g_print("IP Address: %s\n", local);
g_print("Peer IP Address: %s\n", peer);
g_print("Primary DNS Server: %s\n", dns1);
g_print("Secondary DNS Server: %s\n", dns2);
}