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

Function decodeSFlow

layers/sflow.go:135–144  ·  view source on GitHub ↗
(data []byte, p gopacket.PacketBuilder)

Source from the content-addressed store, hash-verified

133}
134
135func decodeSFlow(data []byte, p gopacket.PacketBuilder) error {
136 s := &SFlowDatagram{}
137 err := s.DecodeFromBytes(data, p)
138 if err != nil {
139 return err
140 }
141 p.AddLayer(s)
142 p.SetApplicationLayer(s)
143 return nil
144}
145
146// SFlowDatagram is the outermost container which holds some basic information
147// about the reporting agent, and holds at least one sample record

Callers

nothing calls this directly

Calls 3

DecodeFromBytesMethod · 0.95
AddLayerMethod · 0.65
SetApplicationLayerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…