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