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 VodafoneUSBModem by
Diff: ip/PPPIPInterface.cpp
- Revision:
- 10:21a6f09d5631
- Parent:
- 8:04b6a042595f
- Child:
- 11:565b2ec40dea
--- a/ip/PPPIPInterface.cpp Tue Jun 26 13:44:59 2012 +0000 +++ b/ip/PPPIPInterface.cpp Fri Jul 06 08:56:32 2012 +0000 @@ -37,8 +37,6 @@ #include "netif/ppp/ppp.h" } -#if NET_PPP - PPPIPInterface::PPPIPInterface(IOStream* pStream) : LwIPInterface(), m_linkStatusSphre(1), m_pppErrCode(0), m_pStream(pStream), m_streamAvail(true), m_pppd(-1) { m_linkStatusSphre.wait(); @@ -154,28 +152,28 @@ DBG("Remote IP address: %s", inet_ntoa(addrs->his_ipaddr)); DBG("Primary DNS: %s", inet_ntoa(addrs->dns1)); DBG("Secondary DNS: %s", inet_ntoa(addrs->dns2)); - setConnected(true); - setIPAddress(inet_ntoa(addrs->our_ipaddr)); + pIf->setConnected(true); + pIf->setIPAddress(inet_ntoa(addrs->our_ipaddr)); break; case PPPERR_CONNECT: //Connection lost WARN("Connection lost/terminated"); - setConnected(false); + pIf->setConnected(false); break; case PPPERR_AUTHFAIL: //Authentication failed WARN("Authentication failed"); - setConnected(false); + pIf->setConnected(false); break; case PPPERR_PROTOCOL: //Protocol error WARN("Protocol error"); - setConnected(false); + pIf->setConnected(false); break; case PPPERR_USER: WARN("Disconnected by user"); - setConnected(false); + pIf->setConnected(false); break; default: WARN("Unknown error (%d)", errCode); - setConnected(false); + pIf->setConnected(false); break; } @@ -265,5 +263,3 @@ } -#endif -