diff options
author | Ian Gudger <igudger@google.com> | 2018-08-29 14:14:32 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-08-29 14:15:58 -0700 |
commit | 313d4af52d774b07d4b98d770d38684c9c119f67 (patch) | |
tree | ee7b99a0e637661465a52a7f1ddb1b469daf7202 /pkg/tcpip | |
parent | 956fe64ad6d628c70fe8d0ae7fd4001e8b648a3b (diff) |
ping: update comment about UDP
PiperOrigin-RevId: 210788012
Change-Id: I5ebdcf3d02bfab3484a1374fbccba870c9d68954
Diffstat (limited to 'pkg/tcpip')
-rw-r--r-- | pkg/tcpip/transport/ping/protocol.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/ping/protocol.go b/pkg/tcpip/transport/ping/protocol.go index fb378286c..8a8192064 100644 --- a/pkg/tcpip/transport/ping/protocol.go +++ b/pkg/tcpip/transport/ping/protocol.go @@ -85,7 +85,7 @@ func (p *protocol) MinimumPacketSize() int { panic(fmt.Sprint("unknown protocol number: ", p.number)) } -// ParsePorts returns the source and destination ports stored in the given udp +// ParsePorts returns the source and destination ports stored in the given ping // packet. func (*protocol) ParsePorts(v buffer.View) (src, dst uint16, err *tcpip.Error) { return 0, binary.BigEndian.Uint16(v[header.ICMPv4MinimumSize:]), nil |