afpacket

package
v0.0.0-...-c2e30b8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: NIST-PD-fallback Imports: 8 Imported by: 0

Documentation

Overview

Package afpacket implements a transport that communicates over AF_PACKET sockets. This only works on Linux.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	packettransport.Config
}

Config contains Transport configuration.

type Transport

type Transport interface {
	packettransport.Transport

	// Intf returns the underlying network interface.
	Intf() net.Interface
}

Transport is an l3.Transport that communicates over AF_PACKET sockets.

func New

func New(ifname string, cfg Config) (Transport, error)

New creates a Transport.

Jump to

Keyboard shortcuts

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