MCPcopy Index your code
hub / github.com/celzero/firestack / updateV4PacketChecksums

Function updateV4PacketChecksums

intra/core/wire/xsum.go:83–119  ·  view source on GitHub ↗

updateV4PacketChecksums updates the checksums in the packet buffer. Currently (2023-03-01) only TCP/UDP/ICMP over IPv4 is supported. p is modified in place. If p.IPProto is unknown, only the IP header checksum is updated.

(p *Parsed, old, new netip.Addr)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

UpdateSrcAddrFunction · 0.85
UpdateDstAddrFunction · 0.85

Calls 3

updateV4ChecksumFunction · 0.85
BufferMethod · 0.80
TransportMethod · 0.80

Tested by

no test coverage detected