wengzhe opened a new pull request, #10329:
URL: https://github.com/apache/nuttx/pull/10329
## Summary
Patches included:
- mm/iob: Fix IOB length in `iob_reserve`
- If we apply `iob_reserve` on an IOB with `io_offset != 0`, the
`head->io_pktlen` and `iob->io_len` will become wrong value, because we only
need to trim `offset - iob->io_offset`.
- net/udp: Fix hybrid dual-stack IPv6/IPv4 socket
- Fix `ip6_map_ipv4addr` and `ip6_get_ipv4addr` macro to work under
different endianness.
- Use `iob_reserve` instead of `iob_trimhead` in `udp_datahandler`.
- Because we may set `sockaddr_in6` into IPv4 header, which causes
`offset` become negative. `iob_reserve` can hold this case while `iob_trimhead`
cannot.
- Select IPv4 domain in send case.
## Impact
UDP receive / send, especially on hybrid dual-stack IPv6/IPv4 socket
## Testing
By iperf2 (in vela) on sim, with udp listening on `[::]:5001` and connected
from IPv4, and sending to `::ffff:xxxx:xxxx`.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]