nuttx/arch/sim/src
Zhe Weng 4ac44bc8b5 arch/sim: fix MTU mismatch on TAP device in host route mode
In host route mode (bridge mode disabled), the d_pktsize of TAP device is not initialized and will be set to CONFIG_NET_ETH_PKTSIZE in netdev_register, while the MTU on host side keeps at 1500. Input packets larger than CONFIG_NET_ETH_PKTSIZE will be dropped because 'IP packet shorter than length in IP header'.
This patch fix this issue by reading MTU from host side and set as d_pktsize, just the same as what is done in bridge mode.

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2022-10-21 16:57:36 +08:00
..
sim arch/sim: fix MTU mismatch on TAP device in host route mode 2022-10-21 16:57:36 +08:00
.gitignore arch/sim: Copy include/nuttx/config.h to the local folder 2021-07-27 07:44:33 +09:00
Makefile tools: Replace mkallsyms.sh with mkallsyms.py 2022-09-29 08:33:04 +08:00
nuttx-names.in arch/sim: remove stderr in the function renaming list 2022-09-23 13:53:56 +08:00