mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 14:41:29 +08:00
net/arp: dont learn arp information if interface is noarp
Dont learn arp information from ip packet if interface is noarp Signed-off-by: gaohedong <gaohedong@xiaomi.com>
This commit is contained in:
+3
-2
@@ -83,8 +83,9 @@ void arp_ipin(FAR struct net_driver_s *dev)
|
||||
* Ethernet link layer protocol.
|
||||
*/
|
||||
|
||||
if (dev->d_lltype != NET_LL_ETHERNET &&
|
||||
dev->d_lltype != NET_LL_IEEE80211)
|
||||
if (IFF_IS_NOARP(dev->d_flags) ||
|
||||
(dev->d_lltype != NET_LL_ETHERNET &&
|
||||
dev->d_lltype != NET_LL_IEEE80211))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user