netty5/transport-native-epoll/src
Norman Maurer 7a547aab65
Correctly handle IPV6-mapped-IPV4 addresses in native code when receiving datagrams ()
Motivation:

291f80733a introduced a change to use a byte[] to construct the InetAddress when receiving datagram messages to reduce the overhead. Unfortunally it introduced a regression when handling IPv6-mapped-IPv4 addresses and so produced an IndexOutOfBoundsException when trying to fill the byte[] in native code.

Modifications:

- Correctly use the offset on the pointer of the address.
- Add testcase
- Make tests more robust and include more details when the test fails

Result:

No more IndexOutOfBoundsException
2019-09-11 20:30:28 +02:00
..
main Add support for recvmmsg(...) even with connected datagram channels w… () 2019-09-06 20:58:38 +02:00
test/java/io/netty/channel/epoll Correctly handle IPV6-mapped-IPV4 addresses in native code when receiving datagrams () 2019-09-11 20:30:28 +02:00