Documentation ¶
Index ¶
- func ArpReqWithCtx(ctx context.Context, rCh chan<- int, AdvIP net.IP, ifName string) (int, error)
- func ArpResolver(dIP uint32)
- func FileCreate(fname string) int
- func FileExists(fname string) bool
- func GetIfaceIpAddr(ifName string) (addr net.IP, err error)
- func GratArpReq(AdvIP net.IP, ifName string) (int, error)
- func GratArpReqWithCtx(ctx context.Context, rCh chan<- int, AdvIP net.IP, ifName string) (int, error)
- func HTTPSProber(urls string, cert tls.Certificate, certPool *x509.CertPool, resp string) bool
- func IsIPHostAddr(ipString string) bool
- func IsIPHostNetAddr(ip net.IP) bool
- func Ntohll(i uint64) uint64
- func ReadPIDFile(pf string) int
- func SendArpReq(AdvIP net.IP, ifName string) (int, error)
- func WriteFile(fname, what string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArpReqWithCtx ¶
ArpReqWithCtx - sends a arp req given the DIP, SIP and interface name
func GetIfaceIpAddr ¶
GetIfaceIpAddr - Get interface IP address
func GratArpReq ¶
GratArpReq - sends a gratuitous arp reply given the DIP, SIP and interface name
func GratArpReqWithCtx ¶
func GratArpReqWithCtx(ctx context.Context, rCh chan<- int, AdvIP net.IP, ifName string) (int, error)
GratArpReq - sends a gratuitous arp reply given the DIP, SIP and interface name
func HTTPSProber ¶
HTTPSProber - Do a https probe for given url returns true/false depending on whether probing was successful
func IsIPHostAddr ¶
IsIPHostAddr - Check if provided address is a local address
func IsIPHostNetAddr ¶
IsIPHostNetAddr - Check if provided address is a local subnet
func SendArpReq ¶
SendArpReq - sends a arp request given the DIP, SIP and interface name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.