diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-10 02:30:24 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-10 02:30:24 +0000 |
commit | fbc3187cbf813002017121b53d77e44ebd29a845 (patch) | |
tree | 852aa3dfc3700c60f4ee2810e632b484b65d127a /pkg/tcpip/link | |
parent | e3717d6d92a5b7d6686240a58274fe15f3b0f530 (diff) | |
parent | 2a888a106da39f1d5e280417e48a05341a41f4dd (diff) |
Merge release-20210301.0-31-g2a888a106 (automated)
Diffstat (limited to 'pkg/tcpip/link')
-rw-r--r-- | pkg/tcpip/link/sniffer/sniffer.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/tcpip/link/sniffer/sniffer.go b/pkg/tcpip/link/sniffer/sniffer.go index 84189bba5..7aaee3d13 100644 --- a/pkg/tcpip/link/sniffer/sniffer.go +++ b/pkg/tcpip/link/sniffer/sniffer.go @@ -398,13 +398,7 @@ func logPacket(prefix string, dir direction, protocol tcpip.NetworkProtocolNumbe // Initialize the TCP flags. flags := tcp.Flags() - flagsStr := []byte("FSRPAU") - for i := range flagsStr { - if flags&(1<<uint(i)) == 0 { - flagsStr[i] = ' ' - } - } - details = fmt.Sprintf("flags:0x%02x (%s) seqnum: %d ack: %d win: %d xsum:0x%x", flags, string(flagsStr), tcp.SequenceNumber(), tcp.AckNumber(), tcp.WindowSize(), tcp.Checksum()) + details = fmt.Sprintf("flags: %s seqnum: %d ack: %d win: %d xsum:0x%x", flags, tcp.SequenceNumber(), tcp.AckNumber(), tcp.WindowSize(), tcp.Checksum()) if flags&header.TCPFlagSyn != 0 { details += fmt.Sprintf(" options: %+v", header.ParseSynOptions(tcp.Options(), flags&header.TCPFlagAck != 0)) } else { |