Internal change.

PiperOrigin-RevId: 264218306
This commit is contained in:
gVisor bot 2019-08-19 12:41:48 -07:00
parent a63f88855f
commit 3ffbdffd7e
1 changed files with 2 additions and 3 deletions

View File

@ -360,10 +360,9 @@ func logPacket(prefix string, protocol tcpip.NetworkProtocolNumber, b buffer.Vie
if fragmentOffset == 0 && len(udp) >= header.UDPMinimumSize {
srcPort = udp.SourcePort()
dstPort = udp.DestinationPort()
details = fmt.Sprintf("xsum: 0x%x", udp.Checksum())
size -= header.UDPMinimumSize
}
size -= header.UDPMinimumSize
details = fmt.Sprintf("xsum: 0x%x", udp.Checksum())
case header.TCPProtocolNumber:
transName = "tcp"