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:
Tomasz Bursztyka 2017-04-07 14:51:50 +02:00 committed by Jukka Rissanen
commit 1ab40390c9

View file

@ -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)