nettest

package
v0.0.0-...-2824937 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package nettest provides utilities for IP testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMulticastCapable

func IsMulticastCapable(network string, ifi *net.Interface) (net.IP, bool)

IsMulticastCapable reports whether ifi is an IP multicast-capable network interface. Network must be "ip", "ip4" or "ip6".

func ProtocolNotSupported

func ProtocolNotSupported(err error) bool

ProtocolNotSupported reports whether err is a protocol not supported error.

func RoutedInterface

func RoutedInterface(network string, flags net.Flags) *net.Interface

RoutedInterface returns a network interface that can route IP traffic and satisfies flags. It returns nil when an appropriate network interface is not found. Network must be "ip", "ip4" or "ip6".

func SupportsIPv4

func SupportsIPv4() bool

SupportsIPv4 reports whether the platform supports IPv4 networking functionality.

func SupportsIPv6

func SupportsIPv6() bool

SupportsIPv6 reports whether the platform supports IPv6 networking functionality.

Types

This section is empty.

Jump to

Keyboard shortcuts

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