summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/udp/endpoint.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-25 17:40:04 +0000
committergVisor bot <gvisor-bot@google.com>2019-11-25 17:40:04 +0000
commit56d7dc03b7dd9c53d326b62564d4e0b2669d7d85 (patch)
treeab71c6ea3aa7ab273a9384c3962276eb931fe8e9 /pkg/tcpip/transport/udp/endpoint.go
parent4fa69943460af8f1648d821778ef331589ac6558 (diff)
parent1641338b14204ea941c547cf4c1a70665922ca05 (diff)
Merge release-20191114.0-28-g1641338 (automated)
Diffstat (limited to 'pkg/tcpip/transport/udp/endpoint.go')
-rw-r--r--pkg/tcpip/transport/udp/endpoint.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/tcpip/transport/udp/endpoint.go b/pkg/tcpip/transport/udp/endpoint.go
index 23c1da717..24cb88c13 100644
--- a/pkg/tcpip/transport/udp/endpoint.go
+++ b/pkg/tcpip/transport/udp/endpoint.go
@@ -823,8 +823,9 @@ func sendUDP(r *stack.Route, data buffer.VectorisedView, localPort, remotePort u
ttl = r.DefaultTTL()
}
if err := r.WritePacket(nil /* gso */, stack.NetworkHeaderParams{Protocol: ProtocolNumber, TTL: ttl, TOS: tos}, tcpip.PacketBuffer{
- Header: hdr,
- Data: data,
+ Header: hdr,
+ Data: data,
+ TransportHeader: buffer.View(udp),
}); err != nil {
r.Stats().UDP.PacketSendErrors.Increment()
return err