mirror of
https://github.com/openobserve/goflow2.git
synced 2025-11-01 04:23:57 +00:00
allow unknown record structures in sFlow (#153)
This commit is contained in:
@@ -247,7 +247,10 @@ func DecodeFlowRecord(header *RecordHeader, payload *bytes.Buffer) (FlowRecord,
|
||||
|
||||
flowRecord.Data = extendedGateway
|
||||
default:
|
||||
return flowRecord, errors.New(fmt.Sprintf("Unknown data format %v.", (*header).DataFormat))
|
||||
//return flowRecord, errors.New(fmt.Sprintf("Unknown data format %v.", (*header).DataFormat))
|
||||
flowRecord.Data = &FlowRecordRaw{
|
||||
Data: payload.Next(int(header.Length)),
|
||||
}
|
||||
}
|
||||
return flowRecord, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user