You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue is that the marshalMultipartMessageBody() function in multipart.go returns a byte array which starts with four zero bytes (maybe this should be the header).
The Marshal() function in echo.go appends another four bytes header.
This results in a malformed packet with four zero bytes between ICMP header (here: 00c8 6401) and the Multi-Part Extension header (here: 2000 1554).
Both fixes breaks the test code. => Therefore test code must be fixed too. As I have no clue how the test code works I failed to do so. I won't open a PR.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run a test script to send ICMP ExtendedEchoRequest package.
Script: https://play.golang.org/p/LztQf4qLl4l
What did you expect to see?
What did you see instead?
Issue is that the marshalMultipartMessageBody() function in multipart.go returns a byte array which starts with four zero bytes (maybe this should be the header).
The Marshal() function in echo.go appends another four bytes header.
This results in a malformed packet with four zero bytes between ICMP header (here: 00c8 6401) and the Multi-Part Extension header (here: 2000 1554).
RFC 8335 Section 2 defines:
Two possible ways to fix this:
or
Both fixes breaks the test code. => Therefore test code must be fixed too. As I have no clue how the test code works I failed to do so. I won't open a PR.
The text was updated successfully, but these errors were encountered: