7c06438315
net/ipforward: Check if interface is up early on when forwarding to avoid extra work. As noticed in a previous wireless commit, when forwarding is enabled and a packet comes in, the packet is attempted to be sent on each other netdev without regard for whether it is in the UP state. Of course this is eventually caught, but it can be caught earlier to avoid unnecessary work, especially in the 6LoWPAN case where a useless packet conversion will occur. Approved-by: Gregory Nutt <gnutt@nuttx.org> |
||
---|---|---|
.. | ||
ipforward.h | ||
ipfwd_alloc.c | ||
ipfwd_dropstats.c | ||
ipfwd_forward.c | ||
ipfwd_poll.c | ||
ipv4_forward.c | ||
ipv6_forward.c | ||
Kconfig | ||
Make.defs |