Remove CONFIG_NET_PINGADDRCONF. This was a uIP way of assigning IP addresses, but is not standard and not a appropriate feature in general.

This commit is contained in:
Gregory Nutt
2015-12-01 07:48:56 -06:00
parent 053aeb555c
commit 6af3ba78b9
8 changed files with 18 additions and 45 deletions
+4 -5
View File
@@ -18,15 +18,14 @@ if NET_ICMP
config NET_ICMP_PING
bool "ICMP ping interfaces"
default n
depends on BUILD_FLAT
---help---
Provide interfaces to support application level support for
for sending ECHO (ping) requests and associating ECHO replies.
config NET_PINGADDRCONF
bool "Ping address configuration"
default n
---help---
Use "ping" packet for setting IP address
NOTE: Calling these interfaces from application space is a
violation of the OS/application interface but for historical
reasons, is permitted in the flat build.
endif # NET_ICMP
endmenu # ICMP Networking Support
-12
View File
@@ -117,18 +117,6 @@ void icmp_input(FAR struct net_driver_s *dev)
if (picmp->type == ICMP_ECHO_REQUEST)
{
/* If we are configured to use ping IP address assignment, we use
* the destination IP address of this ping packet and assign it to
* ourself.
*/
#ifdef CONFIG_NET_PINGADDRCONF
if (dev->d_ipaddr == 0)
{
dev->d_ipaddr = picmp->destipaddr;
}
#endif
/* Change the ICMP type */
picmp->type = ICMP_ECHO_REPLY;