Skip to content

Commit

Permalink
#6 fix: invert src and dstmac
Browse files Browse the repository at this point in the history
  • Loading branch information
lspgn committed May 9, 2018
1 parent 9a3b358 commit ba22fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions producer/producer_sf.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func ParseSampledHeader(flowMessage *flowmessage.FlowMessage, sampledHeader *sfl
var srcMac uint64
var dstMac uint64

srcMac = binary.BigEndian.Uint64(append([]byte{0, 0}, data[0:6]...))
dstMac = binary.BigEndian.Uint64(append([]byte{0, 0}, data[6:12]...))
dstMac = binary.BigEndian.Uint64(append([]byte{0, 0}, data[0:6]...))
srcMac = binary.BigEndian.Uint64(append([]byte{0, 0}, data[6:12]...))
(*flowMessage).SrcMac = srcMac
(*flowMessage).DstMac = dstMac

Expand Down

0 comments on commit ba22fe7

Please sign in to comment.