fix:Temporarily remove udp send large pkt assert

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2022-01-20 21:02:37 +08:00 committed by Xiang Xiao
parent 11807abd4e
commit 931a64717a

View File

@ -55,7 +55,12 @@
void devif_iob_send(FAR struct net_driver_s *dev, FAR struct iob_s *iob,
unsigned int len, unsigned int offset)
{
DEBUGASSERT(dev && len > 0 && len < NETDEV_PKTSIZE(dev));
if (dev == NULL || len == 0 || len >= NETDEV_PKTSIZE(dev))
{
nerr("devif_iob_send error, %p, send len: %u, pkt len: %u\n",
dev, len, NETDEV_PKTSIZE(dev));
return;
}
/* Copy the data from the I/O buffer chain to the device buffer */