nuttx/net/devif
Zhe Weng 7f9cf184e5 net/devif_loopback: Add robustness to avoid infinite loop
When ipv4_input/ipv6_input called by devif_loopback writes wrong data into buffer (another bug we're fixing), the else block does nothing but only record the 'dropped' statistic, then infinite loop happens.

Refers to previous lo device with dropping logic:
https://github.com/apache/nuttx/blob/releases/11.0/drivers/net/loopback.c#L178-L180

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-12-24 16:20:17 +08:00
..
devif_callback.c net: cleanup pvconn reference to avoid confuse 2022-08-26 20:58:11 +08:00
devif_cansend.c net/devif_send: replace all block send to nonblock mode 2022-12-08 09:53:15 +01:00
devif_forward.c net/ipfwd: fix devif_forward after IOB offload. 2022-12-06 17:03:47 +08:00
devif_initialize.c tcp: Remove incomplete support for TCP reassembly 2020-12-09 07:25:26 -08:00
devif_iobsend.c net/devif: replace redundant code to iob_clone_partial() 2022-12-14 21:37:20 +08:00
devif_loopback.c net/devif_loopback: Add robustness to avoid infinite loop 2022-12-24 16:20:17 +08:00
devif_pktsend.c net/devif_send: replace all block send to nonblock mode 2022-12-08 09:53:15 +01:00
devif_poll.c net/arp: Remove nuttx/net/arp.h 2022-12-16 22:10:59 +02:00
devif_send.c net/devif_send: replace all block send to nonblock mode 2022-12-08 09:53:15 +01:00
devif.h net/d_buf: remove d_buf reference from l3/l4 2022-12-04 20:37:14 +08:00
ipv4_input.c net/ip: return success if the packet was forwarded. 2022-12-04 15:59:43 -03:00
ipv6_input.c net/ip: return success if the packet was forwarded. 2022-12-04 15:59:43 -03:00
Make.defs net/l2/l3/l4: add support of iob offload 2022-12-03 11:47:04 +08:00