[roll] Roll fuchsia [netstack3] Use raw parsing for transport header

Currently, when dealing with an incoming packet, the filtering crate
fully parses the transport header in order to extract source and
destination ports for inspection. This ends up doing a lot of
unnecessary work, in particular to verify the transport layer checksum,
which can be very expensive when done repeatedly on all packets (as
happens if there are any ingress filtering rules that match on
transport-layer fields).

Instead of doing full parsing, use the "raw parsing" facilities from
packet-formats to only parse the fixed portion of the transport header,
which is enough to extract the ports, and is much cheaper.

In the future, we could consider caching the result of this parsing (for
example, by storing it as a field on `RxPacket` and introducing a
wrapper type for `Ipv{4,6}Packet` that similarly stores it) so that raw
parsing is not repeated for every call to IpPacket::transport_packet.

Test: netstack3-filter-test
      netstack-filter-fidl-tests
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1044977
Original-Revision: 9638431f2d00c5eee3701671bc298d89e4781cf3
GitOrigin-RevId: 8a079627a5738f4582cc98ff9be7a469af85208b
Change-Id: I1d3c4f06805a3c5147a828e7d2fa1441ecf05098
1 file changed
tree: 09e15d0e7fb86fc587eae8b175560a97c8d87bb9
  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.