mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
ping: update comment about UDP
PiperOrigin-RevId: 210788012 Change-Id: I5ebdcf3d02bfab3484a1374fbccba870c9d68954
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user