mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 10:46:28 +08:00
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:
+4
-5
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user