ping: update comment about UDP

PiperOrigin-RevId: 210788012
Change-Id: I5ebdcf3d02bfab3484a1374fbccba870c9d68954
This commit is contained in:
Ian Gudger
2018-08-29 14:15:58 -07:00
committed by Shentubot
parent 956fe64ad6
commit 313d4af52d
+1 -1
View File
@@ -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