(data []byte, p gopacket.PacketBuilder)
| 133 | } |
| 134 | |
| 135 | func 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…