CAIDA / libparsebgp

Lightweight parser for binary BGP, BMP and MRT routing data
https://bgpstream.caida.org
BSD 2-Clause "Simplified" License
8 stars 8 forks source link

bug fix; add notes on the usage of `parse_bgp` function #34

Closed digizeph closed 7 years ago

digizeph commented 7 years ago

Hi Alistair,

The previous pull request has a bug where the unused case PARSEBGP_MRT_TYPE_5 remained in the code, causing the project unable to compile. I removed this case, and all works fine now.

I also added comments to explain the usage of parse_bgp function, and pointing users to parse_bgp4mp function when dealing with newer archive files.

Cheers, Mingwei