MCPcopy
hub / github.com/google/gopacket / LayerClass

Method LayerClass

packet.go:484–491  ·  view source on GitHub ↗
(lc LayerClass)

Source from the content-addressed store, hash-verified

482 return nil
483}
484func (p *eagerPacket) LayerClass(lc LayerClass) Layer {
485 for _, l := range p.layers {
486 if lc.Contains(l.LayerType()) {
487 return l
488 }
489 }
490 return nil
491}
492func (p *eagerPacket) String() string { return p.packetString() }
493func (p *eagerPacket) Dump() string { return p.packetDump() }
494

Callers

nothing calls this directly

Calls 2

ContainsMethod · 0.65
LayerTypeMethod · 0.65

Tested by

no test coverage detected