Documentation
¶
Overview ¶
Package packetsocket provides a link endpoint that enables delivery of incoming and outgoing packets to any interested packet sockets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(lower stack.LinkEndpoint) stack.LinkEndpoint
New creates a new packetsocket link endpoint wrapping a lower link endpoint.
On ingress, the lower link endpoint must only deliver packets that have a link-layer header set if one is required for the link.
Types ¶
type Endpoint ¶
Endpoint is a link endpoint that enables delivery of incoming and outgoing packets to any interested packet sockets.
+stateify savable
func (*Endpoint) DeliverNetworkPacket ¶
func (e *Endpoint) DeliverNetworkPacket(protocol tcpip.NetworkProtocolNumber, pkt *stack.PacketBuffer)
DeliverNetworkPacket implements stack.NetworkDispatcher.
func (*Endpoint) WritePackets ¶
WritePackets implements stack.LinkEndpoint.
Click to show internal directories.
Click to hide internal directories.