MCPcopy Create free account
hub / github.com/celzero/firestack / marshalPseudo

Method marshalPseudo

intra/core/wire/ip4.go:109–125  ·  view source on GitHub ↗

marshalPseudo serializes h into buf in the "pseudo-header" form required when calculating UDP checksums. The pseudo-header starts at buf[ip4PseudoHeaderOffset] so as to abut the following UDP header, while leaving enough space in buf for a full IPv4 header.

(buf []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

MarshalMethod · 0.45
MarshalMethod · 0.45

Calls 1

LenMethod · 0.95

Tested by

no test coverage detected