From 313d4af52d774b07d4b98d770d38684c9c119f67 Mon Sep 17 00:00:00 2001 From: Ian Gudger Date: Wed, 29 Aug 2018 14:14:32 -0700 Subject: ping: update comment about UDP PiperOrigin-RevId: 210788012 Change-Id: I5ebdcf3d02bfab3484a1374fbccba870c9d68954 --- pkg/tcpip/transport/ping/protocol.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/tcpip/transport') 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 -- cgit v1.2.3