Documentation
¶
Index ¶
- Constants
- func ArpReqWithCtx(ctx context.Context, rCh chan<- int, AdvIP net.IP, ifName string) (int, error)
- func ArpResolver(dIP uint32)
- func ConvertToSolicitedNodeMulticast(ip net.IP) net.IP
- func FileCreate(fname string) int
- func FileExists(fname string) bool
- func GenerateRandomMAC() (net.HardwareAddr, error)
- func GetIfaceIP6Addr(ifName string) (addr net.IP, err error)
- func GetIfaceIPAddr(ifName string) (addr net.IP, err error)
- func HTTPSProber(urls string, cert tls.Certificate, certPool *x509.CertPool, resp string) bool
- func IPHostCIDRString(ip net.IP) string
- func IsIPHostAddr(ipString string) bool
- func IsIPHostNetAddr(ip net.IP) bool
- func MkTunFsIfNotExist() error
- func NetAdvertiseVI64Req(targetIP net.IP, ifName string) (int, error)
- func NetAdvertiseVIP4Req(AdvIP net.IP, ifName string) (int, error)
- func NetAdvertiseVIPReqWithCtx(ctx context.Context, rCh chan<- int, AdvIP net.IP, ifName string) (int, error)
- 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
- type Marker
Constants ¶
const (
ICMPv6NeighborAdvertisement = 136 // ICMPv6 Type for Neighbor Advertisement
)
Variables ¶
This section is empty.
Functions ¶
func ArpReqWithCtx ¶
ArpReqWithCtx - sends a arp req given the DIP, SIP and interface name
func ConvertToSolicitedNodeMulticast ¶ added in v0.9.8
ConvertToSolicitedNodeMulticast converts an IPv6 address to its solicited-node multicast address
func GenerateRandomMAC ¶ added in v0.9.8
func GenerateRandomMAC() (net.HardwareAddr, error)
func GetIfaceIP6Addr ¶ added in v0.9.8
GetIfaceIP6Addr - Get interface IP address
func GetIfaceIPAddr ¶ added in v0.9.8
GetIfaceIPAddr - Get interface IP address
func HTTPSProber ¶
HTTPSProber - Do a https probe for given url returns true/false depending on whether probing was successful
func IPHostCIDRString ¶ added in v0.9.8
sIPHostNetAddr - Check if provided address is a local subnet
func IsIPHostAddr ¶
IsIPHostAddr - Check if provided address is a local address
func IsIPHostNetAddr ¶
IsIPHostNetAddr - Check if provided address is a local subnet
func MkTunFsIfNotExist ¶ added in v0.9.4
func MkTunFsIfNotExist() error
func NetAdvertiseVI64Req ¶ added in v0.9.8
func NetAdvertiseVIP4Req ¶ added in v0.9.8
NetAdvertiseVIP4Req - sends a gratuitous arp reply given the DIP, SIP and interface name
func NetAdvertiseVIPReqWithCtx ¶ added in v0.9.8
func NetAdvertiseVIPReqWithCtx(ctx context.Context, rCh chan<- int, AdvIP net.IP, ifName string) (int, error)
NetAdvertiseVIPReqWithCtx - sends a gratuitous arp reply given the DIP interface name
func SendArpReq ¶
SendArpReq - sends a arp request given the DIP, SIP and interface name
Types ¶
type Marker ¶ added in v0.9.8
type Marker struct {
// contains filtered or unexported fields
}
Marker - context container
func (*Marker) ReleaseMarker ¶ added in v0.9.8
ReleaseMarker - Return a marker to the available list