-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't get icmpv6 checksums to work #43
Comments
Similar issue here: Only want to compute checksum for a cloned packet, not the original one. However, putting an if check seems not allowed in a compute_checksum statement. |
Have you tried using the |
Nope, I'did not. But still could not find an elegant way to do it. |
You can check if a packet is the "cloned packet" by looking at the value of |
Because the problem is in ComputeChecksum control, and if statements are not allowed here, checking any variable's value would not help. /* The only legal statements in the implementation of the |
You cannot fold the "cloned packet" condition into the
|
icmpv6 neighbor advertisement has no payload but ping does. can someone point to the syntax that can compute icmpv6 checksums for both of these correctly?
When I add if statements in my compute_chk control (like the ones found at the bottom of this example: https://github.com/jafingerhut/p4lang-tests/blob/master/v1.0.3/switch-2017-03-07/out1/switch-translated-to-p4-16.p4, p4c gives me:
I am using the p4lang/p4app docker image 9fa7847fe635 from 2 months ago.
(edit: I'm guessing people are away on vacation? @theojepsen @robertsoule )
(edit2: bump? ping? Mar 2018)
The text was updated successfully, but these errors were encountered: