()
| 287 | } |
| 288 | |
| 289 | func (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 | |
| 300 | func (s *SFlowDatagram) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { |
| 301 | var agentAddressType SFlowIPType |
no outgoing calls
no test coverage detected