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

Method Length

layers/sflow.go:289–298  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287}
288
289func (s SFlowIPType) Length() int {
290 switch s {
291 case SFlowIPv4:
292 return 4
293 case SFlowIPv6:
294 return 16
295 default:
296 return 0
297 }
298}
299
300func (s *SFlowDatagram) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error {
301 var agentAddressType SFlowIPType

Callers 3

DecodeFromBytesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected