Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arch/sim: fix MTU mismatch on TAP device in host route mode #7380

Merged
merged 1 commit into from Oct 21, 2022

Commits on Oct 21, 2022

  1. 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>
    wengzhe committed Oct 21, 2022
    Configuration menu
    Copy the full SHA
    b627a61 View commit details
    Browse the repository at this point in the history