packet

package
v0.0.0-...-7585b01 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0, MIT Imports: 10 Imported by: 1

Documentation

Overview

Package packet provides the implementation of packet sockets (see packet(7)). Packet sockets allow applications to:

  • manually write and inspect link, network, and transport headers
  • receive all traffic of a given network protocol, or all protocols

Packet sockets are similar to raw sockets, but provide even more power to users, letting them effectively talk directly to the network device.

Packet sockets skip the input and output iptables chains.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEndpoint

func NewEndpoint(s *stack.Stack, cooked bool, netProto tcpip.NetworkProtocolNumber, waiterQueue *waiter.Queue) (tcpip.Endpoint, tcpip.Error)

NewEndpoint returns a new packet endpoint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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