MCPcopy Index your code
hub / github.com/google/gopacket / Loopback

Struct Loopback

layers/loopback.go:20–23  ·  view source on GitHub ↗

Loopback contains the header for loopback encapsulation. This header is used by both BSD and OpenBSD style loopback decoding (pcap's DLT_NULL and DLT_LOOP, respectively).

Source from the content-addressed store, hash-verified

18// used by both BSD and OpenBSD style loopback decoding (pcap's DLT_NULL
19// and DLT_LOOP, respectively).
20type Loopback struct {
21 BaseLayer
22 Family ProtocolFamily
23}
24
25// LayerType returns LayerTypeLoopback.
26func (l *Loopback) LayerType() gopacket.LayerType { return LayerTypeLoopback }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected