packet

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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