Skip to content

Commit 98eb50f

Browse files
committed
Refactor lwip_stack function names to include mbed prefix
Mbed function names, prefixed with lwip are confusing, as the name suggest that they are part of lwip ip stack.
1 parent d0be573 commit 98eb50f

File tree

3 files changed

+101
-101
lines changed

3 files changed

+101
-101
lines changed

features/FEATURE_LWIP/lwip-interface/EthernetInterface.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,25 @@ int EthernetInterface::set_dhcp(bool dhcp)
4141

4242
int EthernetInterface::connect()
4343
{
44-
return lwip_bringup(NULL,_dhcp,
44+
return mbed_lwip_bringup(NULL, _dhcp,
4545
_ip_address[0] ? _ip_address : 0,
4646
_netmask[0] ? _netmask : 0,
4747
_gateway[0] ? _gateway : 0);
4848
}
4949

5050
int EthernetInterface::disconnect()
5151
{
52-
return lwip_bringdown();
52+
return mbed_lwip_bringdown();
5353
}
5454

5555
const char *EthernetInterface::get_mac_address()
5656
{
57-
return lwip_get_mac_address();
57+
return mbed_lwip_get_mac_address();
5858
}
5959

6060
const char *EthernetInterface::get_ip_address()
6161
{
62-
if (lwip_get_ip_address(_ip_address, sizeof _ip_address)) {
62+
if (mbed_lwip_get_ip_address(_ip_address, sizeof _ip_address)) {
6363
return _ip_address;
6464
}
6565

@@ -68,7 +68,7 @@ const char *EthernetInterface::get_ip_address()
6868

6969
const char *EthernetInterface::get_netmask()
7070
{
71-
if (lwip_get_netmask(_netmask, sizeof _netmask)) {
71+
if (mbed_lwip_get_netmask(_netmask, sizeof _netmask)) {
7272
return _netmask;
7373
}
7474

@@ -77,7 +77,7 @@ const char *EthernetInterface::get_netmask()
7777

7878
const char *EthernetInterface::get_gateway()
7979
{
80-
if (lwip_get_gateway(_gateway, sizeof _gateway)) {
80+
if (mbed_lwip_get_gateway(_gateway, sizeof _gateway)) {
8181
return _gateway;
8282
}
8383

0 commit comments

Comments
 (0)