github.com/nxtrace/NTrace-core@v1.3.1-0.20240513132635-39169291e8c9/trace/internal/icmp_general.go (about)

     1  //go:build !darwin
     2  
     3  package internal
     4  
     5  import "net"
     6  
     7  func ListenICMP(network string, laddr string) (net.PacketConn, error) {
     8  	return net.ListenPacket(network, laddr)
     9  }