This commit is contained in:
esrrhs 2018-12-18 19:07:35 +08:00
parent cd0b391eab
commit b83e6e7d45

View File

@ -16,7 +16,7 @@ import (
) )
const ( const (
DATA uint32 = 0xDEADBEEF DATA uint32 = 0x01010101
) )
// An Echo represents an ICMP echo request or reply message body. // An Echo represents an ICMP echo request or reply message body.
@ -99,7 +99,7 @@ func sendICMP(conn icmp.PacketConn, server *net.IPAddr, target string, connId st
} }
msg := &icmp.Message{ msg := &icmp.Message{
Type: ipv4.ICMPTypeTimestamp, Type: ipv4.ICMPTypeExtendedEchoRequest,
Code: 0, Code: 0,
Body: m, Body: m,
} }