You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/10/21 06:11:41 UTC
[GitHub] [incubator-nuttx] wengzhe opened a new pull request, #7380: arch/sim: fix MTU mismatch on TAP device in host route mode
wengzhe opened a new pull request, #7380:
URL: https://github.com/apache/incubator-nuttx/pull/7380
## Summary
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.
## Impact
Netdriver in sim.
## Testing
Tested on Ubuntu 22.04 x86_64, with actual HTTP stream.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #7380: arch/sim: fix MTU mismatch on TAP device in host route mode
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #7380:
URL: https://github.com/apache/incubator-nuttx/pull/7380
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org