netroute

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Originally found in https://github.com/google/gopacket/blob/master/routing/routing.go

  • Route selection modified to choose most selective route to break ties when route priority is insufficient.

This is a BSD import for the routing structure initially found in https://github.com/google/gopacket/blob/master/routing/routing.go RIB parsing follows the BSD route format described in https://github.com/freebsd/freebsd/blob/master/sys/net/route.h

Index

Constants

View Source
const (
	RTF_UP        = 0x1
	RTF_GATEWAY   = 0x2
	RTF_HOST      = 0x4
	RTF_REJECT    = 0x8
	RTF_DYNAMIC   = 0x10
	RTF_MODIFIED  = 0x20
	RTF_STATIC    = 0x800
	RTF_BLACKHOLE = 0x1000
	RTF_LOCAL     = 0x200000
	RTF_BROADCAST = 0x400000
	RTF_MULTICAST = 0x800000
)

selected BSD Route flags.

Variables

This section is empty.

Functions

func New

func New() (routing.Router, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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