add
This commit is contained in:
parent
cd0b391eab
commit
b83e6e7d45
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user