This commit is contained in:
esrrhs 2018-12-23 06:12:16 +08:00
parent 51aba43633
commit 150c7ed74b

View File

@ -72,10 +72,10 @@ func (p *Server) processPacket(packet *Packet) {
p.echoSeq = packet.echoSeq
if packet.msgType == PING {
t := time.Time{}
t.UnmarshalBinary(packet.data)
fmt.Printf("ping from %s %s %d %d %d\n", packet.src.String(), t.String(), packet.rproto, packet.echoId, packet.echoSeq)
sendICMP(packet.echoId, packet.echoSeq, *p.conn, packet.src, "", "", (uint32)(PING), packet.data, packet.rproto, -1)
//t := time.Time{}
//t.UnmarshalBinary(packet.data)
//fmt.Printf("ping from %s %s %d %d %d\n", packet.src.String(), t.String(), packet.rproto, packet.echoId, packet.echoSeq)
//sendICMP(packet.echoId, packet.echoSeq, *p.conn, packet.src, "", "", (uint32)(PING), packet.data, packet.rproto, -1)
return
}