Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip by
Diff: netif/ppp/ipcp.c
- Revision:
- 4:f71f5d9d5846
- Parent:
- 0:51ac1d130fd4
diff -r 9a63dd787415 -r f71f5d9d5846 netif/ppp/ipcp.c
--- a/netif/ppp/ipcp.c Fri Jun 22 13:39:39 2012 +0000
+++ b/netif/ppp/ipcp.c Fri Jun 22 15:08:59 2012 +0000
@@ -1235,9 +1235,13 @@
}
if (ho->hisaddr == 0) {
+#if 0
IPCPDEBUG(LOG_ERR, ("Could not determine remote IP address\n"));
ipcp_close(f->unit, "Could not determine remote IP address");
return;
+#else //Kludge
+ ho->hisaddr = 0; //Set remote IP to 0.0.0.0, this is needed as most 3g providers do not advertise the remote IP to the user
+#endif
}
if (go->ouraddr == 0) {
IPCPDEBUG(LOG_ERR, ("Could not determine local IP address\n"));
