@@ -31,20 +31,6 @@ EMACInterface::EMACInterface(EMAC &emac, OnboardNetworkStack &stack) :
31
31
{
32
32
}
33
33
34
- nsapi_error_t EMACInterface::set_network (const char *ip_address, const char *netmask, const char *gateway)
35
- {
36
- _dhcp = false ;
37
-
38
- strncpy (_ip_address, ip_address ? ip_address : " " , sizeof (_ip_address));
39
- _ip_address[sizeof (_ip_address) - 1 ] = ' \0 ' ;
40
- strncpy (_netmask, netmask ? netmask : " " , sizeof (_netmask));
41
- _netmask[sizeof (_netmask) - 1 ] = ' \0 ' ;
42
- strncpy (_gateway, gateway ? gateway : " " , sizeof (_gateway));
43
- _gateway[sizeof (_gateway) - 1 ] = ' \0 ' ;
44
-
45
- return NSAPI_ERROR_OK;
46
- }
47
-
48
34
nsapi_error_t EMACInterface::set_network (const SocketAddress &ip_address, const SocketAddress &netmask, const SocketAddress &gateway)
49
35
{
50
36
_dhcp = false ;
@@ -110,14 +96,6 @@ nsapi_error_t EMACInterface::get_ip_address(SocketAddress *address)
110
96
return NSAPI_ERROR_NO_CONNECTION;
111
97
}
112
98
113
- const char *EMACInterface::get_ip_address ()
114
- {
115
- if (_interface && _interface->get_ip_address (_ip_address, sizeof (_ip_address))) {
116
- return _ip_address;
117
- }
118
- return nullptr ;
119
- }
120
-
121
99
nsapi_error_t EMACInterface::get_ipv6_link_local_address (SocketAddress *address)
122
100
{
123
101
if (_interface) {
@@ -137,14 +115,6 @@ nsapi_error_t EMACInterface::get_netmask(SocketAddress *address)
137
115
return NSAPI_ERROR_NO_CONNECTION;
138
116
}
139
117
140
- const char *EMACInterface::get_netmask ()
141
- {
142
- if (_interface && _interface->get_netmask (_netmask, sizeof (_netmask))) {
143
- return _netmask;
144
- }
145
- return nullptr ;
146
- }
147
-
148
118
nsapi_error_t EMACInterface::get_gateway (SocketAddress *address)
149
119
{
150
120
if (_interface && _interface->get_gateway (address) == NSAPI_ERROR_OK) {
@@ -156,14 +126,6 @@ nsapi_error_t EMACInterface::get_gateway(SocketAddress *address)
156
126
return NSAPI_ERROR_NO_CONNECTION;
157
127
}
158
128
159
- const char *EMACInterface::get_gateway ()
160
- {
161
- if (_interface && _interface->get_gateway (_gateway, sizeof (_gateway))) {
162
- return _gateway;
163
- }
164
- return nullptr ;
165
- }
166
-
167
129
char *EMACInterface::get_interface_name (char *interface_name)
168
130
{
169
131
if (_interface) {
0 commit comments