utils

package
v0.0.0-...-66c0c6b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PingByTCP

func PingByTCP(ip net.IP, timeout time.Duration, count int) error

PingByTCP https://manpages.ubuntu.com/manpages/lunar/en/man7/packet.7.html https://squidarth.com/networking/systems/rc/2018/05/28/using-raw-sockets.html sudo setcap cap_net_raw,cap_net_admin=eip ./your_exeutable

func PingByUDP

func PingByUDP(ip net.IP, timeout time.Duration, count int) error

PingByUDP NonPrivileged must set 'sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"'

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL