nuttx/arch/sim
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
..
include arch/sim: fix visual studio Linker Tools Error LNK2019 2022-08-24 21:59:07 +08:00
src arch/sim: fix MTU mismatch on TAP device in host route mode 2022-10-21 16:57:36 +08:00
Kconfig arch/sim: support multiple tapdev for sim 2022-10-12 01:57:21 +08:00