Documentation
¶
Index ¶
Constants ¶
View Source
const ( ICMPv4 = 1 ICMPv6 = 58 )
View Source
const (
FlagAck = 1
)
Variables ¶
Functions ¶
func ClientConn ¶
func ClientConn(ip6 bool, conn net.PacketConn, id int) net.PacketConn
func ListenPacket ¶ added in v0.28.1
func ListenPacket(network, address string) (net.PacketConn, error)
ListenPacket listens for ICMP packets on the given network and address.
func ServerConn ¶
func ServerConn(ip6 bool, conn net.PacketConn) net.PacketConn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.