packet

package
v0.0.0-...-ae1d4cc Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 5

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

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