1
0
mirror of https://github.com/netsampler/goflow2.git synced 2024-05-06 15:54:52 +00:00

Merge pull request #16 from netsampler/bugfix/destination-mac-ipfix

Bugfix NetFlow/IPFIX producer
This commit is contained in:
Louis
2021-06-10 18:59:33 -07:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@ -254,6 +254,10 @@ func ConvertNetFlowDataSet(version uint16, baseTime uint32, uptime uint32, recor
// Mac
case netflow.NFV9_FIELD_IN_SRC_MAC:
DecodeUNumber(v, &(flowMessage.SrcMac))
case netflow.NFV9_FIELD_IN_DST_MAC:
DecodeUNumber(v, &(flowMessage.DstMac))
case netflow.NFV9_FIELD_OUT_SRC_MAC:
DecodeUNumber(v, &(flowMessage.SrcMac))
case netflow.NFV9_FIELD_OUT_DST_MAC:
DecodeUNumber(v, &(flowMessage.DstMac))

View File

@ -12,8 +12,7 @@ func TestDecodeFlowExpandedSFlow(t *testing.T) {
Payload: getExpandedSFlowDecode(),
}
s := &StateSFlow{
}
s := &StateSFlow{}
assert.Nil(t, s.DecodeFlow(msg))
}