SNAS / openbmp

OpenBMP Server Collector
www.openbmp.org
Eclipse Public License 1.0
232 stars 76 forks source link

The openbmp.parsed.router BMP message does not have 12 fields #19

Closed PeiwenChen closed 8 years ago

PeiwenChen commented 8 years ago

Hi @TimEvens

I got a panic when processing the BMP message for "openbmp.parsed.router". From https://github.com/OpenBMP/openbmp/blob/master/Server/src/kafka/MsgBusImpl_kafka.cpp#L515-L521, This topic message has 12 fields.

But my Kafka consumer shows it only has 11 fields when reading it with csv:

2016/08/24 13:57:38 Each Record Length: 11
2016/08/24 13:57:38 RECORD!!!!!!!: [term 1 localhost fae1fca475a0b94fbdda74d4bcfd7844 127.0.0.1  65534 (2) Connection closed   2016-08-24 17:57:39.767315]

This message shows, the timestamp is the last field of this topic. But the code shows, there is another field after the timestamp.

Any comments?

PeiwenChen commented 8 years ago

I found out it seems this is new added in pre7. Will get the latest version and try.