func NewEchoRequest(ident, seq uint16, payload []byte) Packet {
	p := Packet{
		Header: Header{Type: EchoRequestType, Code: EchoRequestCode},
		Data: Echo{
			Header: EchoHeader{
				Identifier:     ident,
				SequenceNumber: seq,
			},
			Payload: payload,
		},
	}
	p.Header.Checksum = common.PacketChecksum(p)
	return p
}
// NewEchoRequest creates a new echo request packet.
NewEchoRequest creates a new echo request packet.
// NewEchoRequest creates a new echo request packet .
func NewEchoRequest(ident, seq uint16, payload []byte) Packet {
	p := Packet{
		Header: Header{Type: EchoRequestType, Code: EchoRequestCode},
		Data: Echo{
			Header: EchoHeader{
				Identifier:     ident,
				SequenceNumber: seq,
			},
			Payload: payload,
		},
	}
	p.Header.Checksum = common.PacketChecksum(p)
	return p
}
func NewEchoRequest ( ident , seq uint16 , payload [ ] byte ) Packet { p := Packet { Header : Header { Type : EchoRequestType , Code : EchoRequestCode } , Data : Echo { Header : EchoHeader { Identifier : ident , SequenceNumber : seq , } , Payload : payload , } , } p . Header . Checksum = common . PacketChecksum ( p ) return p }
NewEchoRequest creates a new echo request packet.
NewEchoRequest creates a new echo request packet .