Open ACodingfreak opened 1 year ago
Anything wrong with my code ?
On further troubleshooting
On using python script shown in previous messages, I have found that "populate_filter_cb" in bs_format_mrt.c file always returns BGPSTREAM_PARSEBGP_FILTER_OUT which is ending up in a loop in "bgpstream_parsebgp_populate_record" in bgpstream_parsebgp_common.c
357 if (is_wanted_time(ts_sec, format->filter_mgr) != 0) {
358 // we want this entry
359 return BGPSTREAM_PARSEBGP_KEEP;
360 } else {
361 return BGPSTREAM_PARSEBGP_FILTER_OUT;
362 }
if I use the bgpreader tool then I can see it is always returning "BGPSTREAM_PARSEBGP_KEEP".
Any inputs with respect to why we need that IF condition check as shown in above code ? @alistairking
I did try by removing the IF condition and returning "BGPSTREAM_PARSEBGP_KEEP". It works by displaying the records and elems but it ends up showing more than what available in the .bz2 file and ends up in sleep mode.
Hi All,
When I use the below bgpreader command it just works, but the same with the pybgpstream code shown below is stuck
bgpreader -d singlefile -o upd-file=https://data.ris.ripe.net/rrc00/2023.01/updates.20230120.1420.gz
It gets stuck as shown below