summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-09-30 06:24:48 +0000
committergVisor bot <gvisor-bot@google.com>2020-09-30 06:24:48 +0000
commit8972a9a394dc1645e1a96c5fd6394992bf8125fe (patch)
treefb9fcff1045d402b2f5c73509023bd2dc7161567 /pkg
parent921753b0ddc243b784ce32b59230e15259799e15 (diff)
parent3ef549b67f83fdbc1c7aa30c2b8531f38419461e (diff)
Merge release-20200921.0-78-g3ef549b67 (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/tcpip/header/parse/parse.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/tcpip/header/parse/parse.go b/pkg/tcpip/header/parse/parse.go
index 522135557..5ca75c834 100644
--- a/pkg/tcpip/header/parse/parse.go
+++ b/pkg/tcpip/header/parse/parse.go
@@ -139,6 +139,7 @@ traverseExtensions:
// Returns true if the header was successfully parsed.
func UDP(pkt *stack.PacketBuffer) bool {
_, ok := pkt.TransportHeader().Consume(header.UDPMinimumSize)
+ pkt.TransportProtocolNumber = header.UDPProtocolNumber
return ok
}
@@ -162,5 +163,6 @@ func TCP(pkt *stack.PacketBuffer) bool {
}
_, ok = pkt.TransportHeader().Consume(hdrLen)
+ pkt.TransportProtocolNumber = header.TCPProtocolNumber
return ok
}