route

package
v0.0.0-...-b3f7bda Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package route provides routing information.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("route: not found")

ErrNotFound indicates that no valid default route was found by a query.

Functions

func Default

func Default(af int) (name string, index int, err error)

Default returns the interface and netstat device index of the network interface used for the first identified default route for the specified address family. Valid values for af are syscall.AF_INET and syscall.AF_INET6.

Types

This section is empty.

Jump to

Keyboard shortcuts

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