Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 0/5] Add PPP server support
@ 2010-06-25  3:19 Zhenhua Zhang
  2010-06-25  3:19 ` [PATCH 1/5] gatppp: Add PPP server extension Zhenhua Zhang
  0 siblings, 1 reply; 11+ messages in thread
From: Zhenhua Zhang @ 2010-06-25  3:19 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 111 bytes --]

Hi,

I updated the patch according to the comments. Please review them. Thanks!

Best Regards,
Zhenhua


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH 2/5] atmodem: Fix GAtPPPConnectFunc interface change
@ 2010-06-21  9:47 Zhenhua Zhang
  2010-06-21  9:48 ` [PATCH 3/5] test-server: Add PPP server support Zhenhua Zhang
  0 siblings, 1 reply; 11+ messages in thread
From: Zhenhua Zhang @ 2010-06-21  9:47 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1730 bytes --]

---
 drivers/atmodem/gprs-context.c |    5 +++--
 gatchat/gsmdial.c              |    5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/drivers/atmodem/gprs-context.c b/drivers/atmodem/gprs-context.c
index 4ddf88e..fea80b0 100644
--- a/drivers/atmodem/gprs-context.c
+++ b/drivers/atmodem/gprs-context.c
@@ -65,7 +65,8 @@ struct gprs_context_data {
 	void *cb_data;                                  /* Callback data */
 };
 
-static void ppp_connect(const char *interface, const char *ip,
+static void ppp_connect(const char *interface, const char *local,
+			const char *remote,
 			const char *dns1, const char *dns2,
 			gpointer user_data)
 {
@@ -78,7 +79,7 @@ static void ppp_connect(const char *interface, const char *ip,
 	dns[2] = 0;
 
 	gcd->state = STATE_ACTIVE;
-	CALLBACK_WITH_SUCCESS(gcd->up_cb, interface, TRUE, ip,
+	CALLBACK_WITH_SUCCESS(gcd->up_cb, interface, TRUE, local,
 					STATIC_IP_NETMASK, NULL,
 					dns, gcd->cb_data);
 }
diff --git a/gatchat/gsmdial.c b/gatchat/gsmdial.c
index 62c3b3d..a69a610 100644
--- a/gatchat/gsmdial.c
+++ b/gatchat/gsmdial.c
@@ -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);
 }
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-07-06  6:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-25  3:19 [PATCH 0/5] Add PPP server support Zhenhua Zhang
2010-06-25  3:19 ` [PATCH 1/5] gatppp: Add PPP server extension Zhenhua Zhang
2010-06-25  3:19   ` [PATCH 2/5] atmodem: Fix GAtPPPConnectFunc interface change Zhenhua Zhang
2010-06-25  3:19     ` [PATCH 3/5] test-server: Add PPP server support Zhenhua Zhang
2010-06-25  3:19       ` [PATCH 4/5] test-server: Configure network interface Zhenhua Zhang
2010-06-25  3:19         ` [PATCH 5/5] gsmdial: Configure network interface for PPP Zhenhua Zhang
2010-06-30  9:43       ` [PATCH 3/5] test-server: Add PPP server support Zhang, Zhenhua
2010-07-01 14:00         ` Denis Kenzior
2010-07-02  3:11           ` Zhang, Zhenhua
2010-07-06  6:23           ` Zhang, Zhenhua
  -- strict thread matches above, loose matches on Subject: below --
2010-06-21  9:47 [PATCH 2/5] atmodem: Fix GAtPPPConnectFunc interface change Zhenhua Zhang
2010-06-21  9:48 ` [PATCH 3/5] test-server: Add PPP server support Zhenhua Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox