mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #7161 from kjbracey-arm/ppp-gateway
Correct PPPCellularInterface::get_gateway()pull/6962/head
commit
ed9a1f1327
|
@ -452,7 +452,7 @@ const char *nsapi_ppp_get_gw_addr(FileHandle *stream)
|
|||
|
||||
static char gwaddr[IPADDR_STRLEN_MAX];
|
||||
if (stream == my_stream) {
|
||||
if (my_interface->get_netmask(gwaddr, IPADDR_STRLEN_MAX)) {
|
||||
if (my_interface->get_gateway(gwaddr, IPADDR_STRLEN_MAX)) {
|
||||
return gwaddr;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -749,7 +749,7 @@ const char *PPPCellularInterface::get_netmask()
|
|||
|
||||
const char *PPPCellularInterface::get_gateway()
|
||||
{
|
||||
return nsapi_ppp_get_ip_addr(_fh);
|
||||
return nsapi_ppp_get_gw_addr(_fh);
|
||||
}
|
||||
|
||||
/** Power down modem
|
||||
|
|
Loading…
Reference in New Issue