From d1d73a75fc46e9ea88d4daf5c9223e8d9268c305 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 13 Apr 2010 14:55:10 -0500 Subject: ppp: Introduce ppp_net_up_notify and use it This is slightly cleaner way than defining a weird callback function. --- gatchat/ppp_ipcp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gatchat/ppp_ipcp.c') diff --git a/gatchat/ppp_ipcp.c b/gatchat/ppp_ipcp.c index f695079e..1eebd21f 100644 --- a/gatchat/ppp_ipcp.c +++ b/gatchat/ppp_ipcp.c @@ -135,8 +135,7 @@ static void ipcp_up(struct pppcp_data *pppcp) addr.s_addr = ipcp->dns2; inet_ntop(AF_INET, &addr, dns2, INET_ADDRSTRLEN); - ppp_connect_cb(pppcp_get_ppp(pppcp), G_AT_PPP_CONNECT_SUCCESS, - ip[0] ? ip : NULL, + ppp_net_up_notify(pppcp_get_ppp(pppcp), ip[0] ? ip : NULL, dns1[0] ? dns1 : NULL, dns2[0] ? dns2 : NULL); } -- cgit v1.2.3