mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
7e6138f258
commit
ca7c6e2a6f
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue