Skip to content

Conversation

@WeiRG
Copy link

@WeiRG WeiRG commented Jun 13, 2025

When a icmp packet use opt_icmp_echoed option, the payload_bytes which provided by UDP, is not add
in icmp_bytes yet, this would make paylaod error when packet verify. For example:

in script the packet event like this:
...
+0 > icmp unreachable port_unreachable[udp(20)]
It will result in the following errors:
live packet payload: expected 28 bytes vs actual 48 bytes

The packet_payload_len function is not contains the payload_bytes. Add the payload_bytes in echoed_bytes to fix this error.

When a icmp packet use opt_icmp_echoed option, the
payload_bytes which provided by UDP, is not add
in icmp_bytes yet, this would make paylaod error when
packet verify. For example:

in script the packet event like this:
	...
	+0 > icmp unreachable port_unreachable[udp(20)]
It will result in the following errors:
	live packet payload: expected 28 bytes vs actual 48 bytes

The packet_payload_len function is not contains the payload_bytes.
Add the payload_bytes in echoed_bytes to fix this error.

Signed-off-by: Rongguang Wei <[email protected]>
@google-cla
Copy link

google-cla bot commented Jun 13, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant