net/arp: Return relevant verdict if the ARP packet was consumed
DROP is only on error case, here it should return NET_OK if it was a proper ARP packet and it got properly handled. Change-Id: If347e80a76b3a56a9455b70d11b735c1fd910117 Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
4d1115ab35
commit
1ab40390c9
1 changed files with 3 additions and 1 deletions
|
@ -475,7 +475,9 @@ enum net_verdict net_arp_input(struct net_buf *buf)
|
|||
break;
|
||||
}
|
||||
|
||||
return NET_DROP;
|
||||
net_nbuf_unref(buf);
|
||||
|
||||
return NET_OK;
|
||||
}
|
||||
|
||||
void net_arp_init(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue