MCPcopy Create free account
hub / github.com/Edgio/vflow / validate

Method validate

netflow/v9/decoder.go:142–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140}
141
142func (h *PacketHeader) validate() error {
143 if h.Version != 9 {
144 return fmt.Errorf("invalid netflow version (%d)", h.Version)
145 }
146
147 // TODO: needs more validation
148
149 return nil
150}
151
152// 0 1 2 3
153// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

Callers 1

DecodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected