net/udp: Add drop count when limited by recv bufsize

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng 2023-02-22 19:10:45 +08:00 committed by Petro Karashchenko
parent 468a0f0991
commit 0069eefd4b

View file

@ -79,6 +79,9 @@ static uint16_t udp_datahandler(FAR struct net_driver_s *dev,
{
iob = iob_remove_queue(&conn->readahead);
iob_free_chain(iob);
#ifdef CONFIG_NET_STATISTICS
g_netstats.udp.drop++;
#endif
}
#endif