[roll] Roll fuchsia [packet-formats] No pseudo header in ICMPv4 checksum

ICMPv4 packets produced by packet-formats do not include the IP pseudo
header in their transport-layer checksum calculation, because the IPv4
header always includes a checksum. Fix the pseudo header checksum update
logic to correctly do nothing for ICMPv4.

The existing test did not catch this because it was swapping the source
and destination IP addresses, resulting in a checksum that was the same
as if those addresses had never been included. Fix the test to use
different IP addresses for both source and destination such that it
catches this bug.

Original-Bug: 321013529
Test: netstack3-filter-test
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1048072
Original-Revision: 0330c7696ccd4141570f33dd9f92c5861d62afb4
GitOrigin-RevId: f70d782281edd8fbcd027ad4dd17857878f732b6
Change-Id: I8b325be1341a09318ec3094e524207d2719afb29
1 file changed
tree: fdddb83abe8f7e05c639eea0a51e0654bf5b6162
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.