Skip to content

Commit

Permalink
Merge pull request #7161 from kjbracey-arm/ppp-gateway
Browse files Browse the repository at this point in the history
Correct PPPCellularInterface::get_gateway()
  • Loading branch information
Cruz Monrreal authored Jun 12, 2018
2 parents af55378 + 45e24d4 commit ed9a1f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion features/FEATURE_LWIP/lwip-interface/ppp_lwip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed9a1f1

Please sign in to comment.