net/packet: fix Parsed docs (#16200)

Updates #cleanup

Signed-off-by: Jordan Whited <jordan@tailscale.com>
pull/16204/head
Jordan Whited 6 months ago committed by GitHub
parent 486a55f0a9
commit 75a7d28b07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -51,10 +51,11 @@ type Parsed struct {
IPVersion uint8
// IPProto is the IP subprotocol (UDP, TCP, etc.). Valid iff IPVersion != 0.
IPProto ipproto.Proto
// SrcIP4 is the source address. Family matches IPVersion. Port is
// valid iff IPProto == TCP || IPProto == UDP.
// Src is the source address. Family matches IPVersion. Port is
// valid iff IPProto == TCP || IPProto == UDP || IPProto == SCTP.
Src netip.AddrPort
// DstIP4 is the destination address. Family matches IPVersion.
// Dst is the destination address. Family matches IPVersion. Port is
// valid iff IPProto == TCP || IPProto == UDP || IPProto == SCTP.
Dst netip.AddrPort
// TCPFlags is the packet's TCP flag bits. Valid iff IPProto == TCP.
TCPFlags TCPFlag

Loading…
Cancel
Save