| 1 |
1.16 (2026-03-16) |
| 2 |
- Bugfix for -w. Rreported by ytti, fixed by Gerdriaan Mulder. |
| 3 |
|
| 4 |
1.15 (2024-05-15) |
| 5 |
- Apologies, debug code slipped into the last release |
| 6 |
|
| 7 |
1.14 (2024-05-14) |
| 8 |
- Small performance gain: set TCP_NODELAY on the socket |
| 9 |
|
| 10 |
1.13 (2024-05-01) |
| 11 |
- Fixed a bug for Mac users by removing sx_maxsockbuf() |
| 12 |
- Fixed a comma printing bug in IOS XR as-path-set output |
| 13 |
|
| 14 |
1.12 (2024-02-12) |
| 15 |
- Fix a bug in the mikrotik printer |
| 16 |
|
| 17 |
1.11 (2023-06-20) |
| 18 |
- disallow AS 23456 as origin (can be bypassed via -p) |
| 19 |
|
| 20 |
1.10 (2023-06-03) |
| 21 |
- Add support for Nokia SR Linux IP prefix lists / ACL filters |
| 22 |
- Accept -3 as a no-op for bgpq3 compatibility |
| 23 |
|
| 24 |
1.9 (2023-03-05) |
| 25 |
- Bugfix for -S problem (bgpq4#83) by James Bensley |
| 26 |
|
| 27 |
1.8 (2023-01-20) |
| 28 |
- Downgrade 'key not found' to DEBUG level to reduce noise |
| 29 |
- Re-introduce -p for private ASN support option |
| 30 |
|
| 31 |
1.7 (2022-11-03) |
| 32 |
- Support SOURCE:: syntax (contributed by James Bensley) |
| 33 |
|
| 34 |
1.6 (2022-09-07) |
| 35 |
- Fix a bug in address prefix range parsing |
| 36 |
|
| 37 |
1.5 (2022-07-25) |
| 38 |
- Add support for the new Junos as-path-origins feature |
| 39 |
|
| 40 |
1.4 (2021-08-20) |
| 41 |
- Fix BIRD aspath output |
| 42 |
|
| 43 |
1.3 (2021-08-20) |
| 44 |
- Change versioning from X.Y.Z to Y.Z |
| 45 |
- The repository file hierachy has been reorganized (compat/ include/) |
| 46 |
- Man page has been extended |
| 47 |
- Large portions of code have been reformatted to adhere to OpenBSD's source |
| 48 |
file style guide to improve readability. |
| 49 |
- Refactor: replace two-dimensional array for ASN storage with Red-Black tree |
| 50 |
- Reduced memory usage |
| 51 |
|
| 52 |
0.0.9 (2021-08-18) |
| 53 |
- Fix various memory errors |
| 54 |
|
| 55 |
0.0.8 (2021-08-17) |
| 56 |
- Reorganize automake files and includes |
| 57 |
- Normalize code to adhere to KNF |
| 58 |
- Fix all compiler warnings |
| 59 |
|
| 60 |
0.0.6 (2020-03-12): |
| 61 |
- Bugfixes - Thanks Chris Caputo! |
| 62 |
|
| 63 |
0.0.5 (2020-01-01): |
| 64 |
- Bugfixes |
| 65 |
|
| 66 |
0.0.4 (2019-12-31): |
| 67 |
- Remove the '-3' command line option, assume all devices are |
| 68 |
32-bit ASN safe |
| 69 |
|
| 70 |
0.0.3 (2019-12-30): |
| 71 |
- Remove the '-2' command line option |
| 72 |
- Significant code reformating |
| 73 |
- Improve performance by using IRRd 4's A query when available |
| 74 |
|
| 75 |
0.0.2 (2019-12-14): |
| 76 |
- Add Mikrotik support |
| 77 |
- Remove ASDDOT support |
| 78 |
|
| 79 |
0.0.1 (2019-12-14): |
| 80 |
- Fork bgpq3 into bgpq4 |
| 81 |
|
| 82 |
0.1.36-pre (2019-11-08): |
| 83 |
- minor documentation cleanup: bgpq3 supports much more vendors |
| 84 |
than just Cisco and Juniper. Copyright years updated. |
| 85 |
- Nokia SR OS "classic" actually supports aggregation and |
| 86 |
and more-specific filtering in prefix-lists. Thanks to mfisher128 |
| 87 |
for reporting. |
| 88 |
- change log level for prefixes with wrong address family from error |
| 89 |
to debugging: it's perfectly correct to have prefixes of different |
| 90 |
families in route-sets. Thanks to Jay Ford for suggestion. |
| 91 |
|
| 92 |
0.1.35 (2018-11-30): |
| 93 |
- initial support for Juniper route-filter-lists (JunOS 16.2+). |
| 94 |
- too large (>124bytes) sources list was not handled correctly. |
| 95 |
Reported by Pier Carlo Chiodi. |
| 96 |
- initial support for Huawei format (prefix-lists and as-path filters) |
| 97 |
New flag -U. Requested by Alexander Wagberg. |
| 98 |
- fix ipv6 prefix-ranges. Reported by Jay Ford. |
| 99 |
- OpenBGPd change: -E now generates prefix-set instead of prefix-list. |
| 100 |
Based on submission by Denis Fondras |
| 101 |
- new option -w, allowing to 'validate' AS numbers included in as-path |
| 102 |
access-lists: only those AS having registered route-objects are allowed. |
| 103 |
By default checks route[4] presence, to check route6 objects shall be |
| 104 |
used together with -6. |
| 105 |
- cleanup OpenBGPd prefix-sets. Submitted by Claudio Jeker. |
| 106 |
- new flag -t: generate as-sets for OpenBGPD (OpenBSD 6.4+), BIRD and |
| 107 |
JSON formats. Based on submission by Claudio Jeker. |
| 108 |
- new flag -n: support for Nokia SR OS MD-CLI. Based on examples |
| 109 |
provided by Greg Hankins. |
| 110 |
- irrd queries for asn32 changed from asdot to asplain notation. |
| 111 |
Thanks to Troy2914 for heads up. |
| 112 |
|
| 113 |
0.1.35-rc2 (2017-06-14) |
| 114 |
- OpenBSD need <sys/select.h>. Reported by Denis Fondras. |
| 115 |
- OpenBGPD output shall not emit 'deny any from any' in case of empty |
| 116 |
prefix-list. New flag -a <asn> introduced to allow peer-as indication. |
| 117 |
When this flag is not specified, empty prefix-list is generated (will |
| 118 |
not be accepted by OpenBGPD). |
| 119 |
Reported by Denis Fondras |
| 120 |
|
| 121 |
0.1.35-rc (2017-30-05) |
| 122 |
- Nokia SR OS (formerly Alcatel-Lucent) support. Based on submission by |
| 123 |
Michail Litvak. |
| 124 |
- sync man-page with readme.md |
| 125 |
- socket() EAFNOSUPPORT error handling |
| 126 |
|
| 127 |
0.1.33 (2016-10-14) |
| 128 |
- OpenBGPD support (-B). Submitted by Peter Hessler. |
| 129 |
|
| 130 |
0.1.32 (2016-08-28) |
| 131 |
- rollback 0.1.32-rc2 (2015-07-01) change: by default all IRRD sources |
| 132 |
are allowed by default. Documentation updated to mark radb,ripe,apnic |
| 133 |
as 'recommended', not as 'preset default'. |
| 134 |
|
| 135 |
untagged yet (2016-05-10) |
| 136 |
- fix: was not able to build on Solaris. Thanks to Mansoor Ali Khan. |
| 137 |
- feature: IOS XR mode now supports as-paths (ios-regexs). Thanks |
| 138 |
to Tassos Chatzithomaoglou for examples and proofreading. |
| 139 |
(additions from 2015-09-23) |
| 140 |
- bugfix: stoplist shall be able to catch AS numbers as promised. |
| 141 |
- bugfix: bgpq3 shall not hang at unknown escapes in -M.. |
| 142 |
- gotcha: "ANY" object in recursive mode ignored: shut complaints on |
| 143 |
"ERROR:unexpected object 'ANY' in expanded_macro_limit (in response |
| 144 |
to !iAS-SET-SCOPESKY)" (object contains mbrs-by-ref: ANY). |
| 145 |
(additions from 2015-08-30) |
| 146 |
- bugfix: OpenBSD sys/queue.h does not have STAILQ_ interface. |
| 147 |
Thanks to Pedro Caetano for reporting and testing. |
| 148 |
- feature: alternate whois port can be configured with -h host[:port] |
| 149 |
- feature: new format char %N (object name) in formatted output. |
| 150 |
Thanks to Denis Fondras. |
| 151 |
- feature: new format chars %m (prefix mask) and %i (inverse mask) in |
| 152 |
formatted output. |
| 153 |
|
| 154 |
0.1.32-rc5 (2015-07-12) |
| 155 |
- feature: -L <depth>: limit recursion depth when expanding as-sets |
| 156 |
(default: not limited). Based on idea by Eugene Demidov. |
| 157 |
- feature: stoplist. Now you can add EXCEPT Object... at the end of |
| 158 |
bgpq3 command line and corresponding as-sets and asns will not be |
| 159 |
expanded (does not works for prefixes and prefix-sets yet). |
| 160 |
- internals: major pipelining rewrite and some code cleanup. |
| 161 |
|
| 162 |
0.1.32-rc4 (2015-07-06) |
| 163 |
- change: BIRD can't handle empty lists (NAME = []), so they are not |
| 164 |
generated at all. |
| 165 |
|
| 166 |
0.1.32-rc3 (2015-07-01) |
| 167 |
- feature: option -s can be used to generate sequence numbers in IOS |
| 168 |
prefix-lists |
| 169 |
- feature: option -F <fmt> can be used to generate output in user-defined |
| 170 |
format. Only prefix-lists supported for now. |
| 171 |
|
| 172 |
0.1.32-rc2 (2015-07-01) |
| 173 |
- bugfix: when no sources provided in command line and via IRRD_SOURCES env, |
| 174 |
no source limitation were sent to IRRd. Thanks to Mikhail A. Grishin. |
| 175 |
|
| 176 |
0.1.32-rc (2015-06-28) |
| 177 |
- bugfix: F source(s) unavailable message from IRRD was ignored. |
| 178 |
Please note: this error is caught only when all the specified sources |
| 179 |
are invalid. For example, 'bgpq3 -s nonexistant' will fail, however, |
| 180 |
'bgpq3 -s nonexistant,ripe' will not fail and will use only ripe source. |
| 181 |
Thanks to Mikhail A. Grishin for reporting. |
| 182 |
- RIPE-style queries (-T route6 -i origin asNNN) replaced with IRRd-style |
| 183 |
!6asNNN queries. |
| 184 |
|
| 185 |
0.1.31 (2015-06-23) |
| 186 |
- pipelining mode now counts buffered requests and issues dequeue |
| 187 |
when new request can overflow allocated buffer. So, bgpq3 shall no |
| 188 |
more require TCP tuning (it is still recomended, though). |
| 189 |
- tcp tuning parameters decreased in README (sx_maxsockbuf will not |
| 190 |
allow buffer over 2Mb anyway). |
| 191 |
|
| 192 |
0.1.30 (2015-06-16) |
| 193 |
- bugfix: private asns with number > 2^31 were printed as negative integers. |
| 194 |
Thanks to Henrik Thostrup Jensen. |
| 195 |
- do not use ASNs reserved for documentation purposes and private use: |
| 196 |
64496-64511 For documentation and sample code; reserved by [RFC5398] |
| 197 |
64512-65534 For private use; reserved by [RFC6996] |
| 198 |
65535 Reserved by [RFC7300] |
| 199 |
65536-65551 For documentation and sample code; reserved by [RFC5398] |
| 200 |
4200000000-4294967294 For private use; reserved by [RFC6996] |
| 201 |
4294967295 Reserved by [RFC7300] |
| 202 |
Please, use new -p flag to include these asn's. |
| 203 |
Suggested by Henrik Thostrup Jensen and Job Snijders. |
| 204 |
- allow as-path generation with BIRD output. Suggested by Jiri Mikulas. |
| 205 |
- merge README.md changes by Job Snijders. |
| 206 |
- bugfix: incorrect asdot representation (as101. without symbols after dot) |
| 207 |
is not allowed anymore. |
| 208 |
|
| 209 |
0.1.29 (2015-05-04) |
| 210 |
- do not include routes registered for AS23456 (transition-as) by default. |
| 211 |
Use new option -2 to restore old behaviour. |
| 212 |
|
| 213 |
0.1.28 (2015-03-10) |
| 214 |
- minor changes: .spec update, non-silent failure on wrong af, |
| 215 |
more room for masklen... |
| 216 |
|
| 217 |
0.1.27 (2015-03-10) |
| 218 |
- bugfix: some ipv6 prefixes were not parsed correctly since 0.1.26. |
| 219 |
Thanks to Job Snijders. |
| 220 |
|
| 221 |
0.1.26 (2015-02-19) |
| 222 |
- RPSL <address-prefix-range> support, can be found in rs-esnetcustomers. |
| 223 |
Thanks to Kris O'Connell for reporting. |
| 224 |
|
| 225 |
0.1.25 (2014-10-29) |
| 226 |
- JSON support extended to handle "as-paths" too. Well, actually, as |
| 227 |
there are no defined format for as-path in json, bgpq3 just creates |
| 228 |
simple object like following: |
| 229 |
|
| 230 |
snar@fri:~/compile/bgpq3>./bgpq3 -j3f 20597 as-eltel |
| 231 |
{"NN": [ |
| 232 |
112,5495,6857,8377,20597,34102,35357,43951, |
| 233 |
52007,56764,197759,197888,198610,201499 |
| 234 |
]} |
| 235 |
|
| 236 |
Based on suggestion by Henrik Thostrup Jensen. |
| 237 |
- -W len option documented. |
| 238 |
|
| 239 |
0.1.24 (2014-07-31) |
| 240 |
- empty prefix-lists (Cisco), extended access-lists (Cisco), as-path |
| 241 |
filters (Cisco and Juniper) and route-filters (Juniper) handling: |
| 242 |
explicit 'deny any' entry now generated instead of implicit 'permit-any'. |
| 243 |
Based on suggestion by Tore Anderson. |
| 244 |
|
| 245 |
0.1.23 (2014-07-30) |
| 246 |
- bugfix: use of -M option caused major slowdown as it turned off |
| 247 |
request pipelining... Thanks to Tore Anderson. |
| 248 |
|
| 249 |
0.1.22 (2014-07-27) |
| 250 |
- bugfix: allow network object with stray spaces after prefix length. |
| 251 |
Found by Tom Eichhorn in 2620:74:14::/48 (VeriSign Route6, RADB). |
| 252 |
- bugfix: networks with leading zeros (02.51.252.0/22, as4787) are not |
| 253 |
parsed correctly in inet_ntop.. Found by Tom Eichhorn. |
| 254 |
|
| 255 |
0.1.21 (2014-06-05) |
| 256 |
- new flag -b: generate prefix-filters for BIRD (http://bird.network.cz), |
| 257 |
contributed by Job Snijders. |
| 258 |
|
| 259 |
0.1.20-todo2 (2014-05-01) |
| 260 |
- new flag -r <len>, allowing bgpq to generate limited set of more-specific |
| 261 |
routes - only routes with prefix-length >= <len> are accepted. |
| 262 |
Thanks to Pavel Gulchouck for suggesion. |
| 263 |
|
| 264 |
0.1.20-todo (2013-10-07) |
| 265 |
- socket close code fixed. Thanks to Martin J. Levy. |
| 266 |
- new flag -4, "force ipv4". Actually does a little more than allowing |
| 267 |
for pedantic checks. Thanks to Martin J. Levy. |
| 268 |
|
| 269 |
0.1.19 (2013-05-09) |
| 270 |
- CLANG compilation issues fixed. |
| 271 |
- bgpq3.spec added. Thanks to Arnoud Vermeer. |
| 272 |
|
| 273 |
0.1.18 (2013-01-08) |
| 274 |
- JSON output format. Thanks to Job Snijders (Atrato Networks). |
| 275 |
|
| 276 |
0.1.17 (2012-10-25) |
| 277 |
- route-sets handling in command-line added. Thanks to Alexandr Turovsky |
| 278 |
for pointing out. |
| 279 |
- bug in aggregation documentation fixed. Thanks to Nikolay Shopik. |
| 280 |
|
| 281 |
0.1.16 (2012-01-19) |
| 282 |
- new option -m <len>: maximum length of accepted prefixes. |
| 283 |
Suggested by Eugene Demidov, used to discard 'too long prefixes' |
| 284 |
(like /30-/32) even if they are registered in IRR. By default |
| 285 |
limit is not set and all prefixes accepted. |
| 286 |
- documentation redesigned into text/markdown and text/html (manpage |
| 287 |
supported still). |
| 288 |
|
| 289 |
0.1.15 (2011-07-15) |
| 290 |
- prefix-set's for Cisco IOS XR now supported too. |
| 291 |
|
| 292 |
0.1.14 (2011-06-18) |
| 293 |
- Fixed bug in sx_maxsockbuf in rare cases of OS maxsockbuf >2M. |
| 294 |
Thanks to Andreas Lundin. |
| 295 |
|
| 296 |
0.1.13 (2011-06-14) |
| 297 |
- never publically released. |
| 298 |
|
| 299 |
0.1.12 (2010-10-08) |
| 300 |
- Fixed bug preventing AS262144 (that's AS4.0 in asdot) to expand. |
| 301 |
Thanks to Sergey Matveychuk |
| 302 |
|
| 303 |
0.1.11 (2010-04-19) |
| 304 |
- Fixed another bug in aggregation (-A) mode, thanks to Dmitry Tejblum. |
| 305 |
|
| 306 |
0.1.10 (2009-06-13) |
| 307 |
- Fixed bug in aggregation (-A) mode, thanks to Sergey Gonchar. |
| 308 |
|
| 309 |
0.1.9 (2009-03-27) |
| 310 |
- RIPE changed ASN32 notation to asplain. And RADB does not support |
| 311 |
asplain indexing (yet?).... Fixed. Thanks to Pavel Gluchouk. |
| 312 |
|
| 313 |
0.1.8 (2008-12-25) |
| 314 |
- new flag -D for Cisco asdot notation. Cisco behaviour is a bit |
| 315 |
strange for me, but, well, that's their decision: |
| 316 |
When the asdot format is enabled as the default, any regular expressions |
| 317 |
to match 4-byte autonomous system numbers must be written using the asdot |
| 318 |
format, or else the regular expression match will fail. |
| 319 |
(c) http://www.cisco.com/en/US/docs/ios/12_0s/release/ntes/120SNEWF.html |
| 320 |
#wp3521658 (note the URL wrap). |
| 321 |
|
| 322 |
0.1.7 (2008-12-19): |
| 323 |
- man page. Finally :) |
| 324 |
- option -h now means not help, but now it can be used to point to |
| 325 |
alternate IRRD host, like in old bgpq. |
| 326 |
|
| 327 |
0.1.6 (2008-08-08): |
| 328 |
- maxsockbuf call added, that can help with pipelining of really large |
| 329 |
as-sets. |
| 330 |
- new key -M <extra match condition> for juniper route-filters, f.e.: |
| 331 |
bgpq3 -JEM "protocol bgp;\n community no-export" -l PolicyName/TermName |
| 332 |
will generate term with additional match conditions, like: |
| 333 |
|
| 334 |
policy-options { |
| 335 |
policy-statement PolicyName { |
| 336 |
term TermName { |
| 337 |
replace: |
| 338 |
from { |
| 339 |
protocol bgp; |
| 340 |
community no-export; |
| 341 |
route-filter 10.0.0.0/24 exact; |
| 342 |
} |
| 343 |
} |
| 344 |
} |
| 345 |
} |
| 346 |
|
| 347 |
0.1.5 (2008-06-02): |
| 348 |
- route-set's expansion added. Fully functional for IPv4 prefixes, but |
| 349 |
not for IPv6 - only those prefixes explicitely marked as 'member-of: RS..' |
| 350 |
will be expanded. This is due to limitation in IRRd. |
| 351 |
- extended access-lists (Cisco) and route-filters (Juniper) generation |
| 352 |
is supported now with new -E key. For Cisco ipv6 access-lists is not |
| 353 |
yet supported. |
| 354 |
|
| 355 |
0.1.4 (2008-05-30): |
| 356 |
- bugfix for juniper as-path group generation. Thanks to Alexander Shikoff. |
| 357 |
|
| 358 |
0.1.3 (2008-05-20): |
| 359 |
- aggregation (-A) now supported for Cisco prefix-lists. |
| 360 |
- pipelining now can be enabled for RIPE-style queries too (ipv6). |
| 361 |
- more-specific routes (-R len) feature ported from bgpq |
| 362 |
- pipelining now set by default. -T flag now disables pipelining. |
| 363 |
- strlcpy.c imported into sources. Not found on Linux :) |
| 364 |
|
| 365 |
0.1.2 (2008-05-19): |
| 366 |
- final support for asn32, now with correct syntax for Juniper. |
| 367 |
- experimental 'pipelining' mode (flag -T), much faster when |
| 368 |
working with big as-set's. |
| 369 |
- RIPE-style query (-i origin) now requests only route6 objects. |
| 370 |
|
| 371 |
0.1.1 (2008-05-16): |
| 372 |
- initial support for asn32 added (flag -3). By default it's off, |
| 373 |
and when bgpq sees 32-bit asn in resolver queue, it either replaces |
| 374 |
it with AS23456 (in as-path generation mode) or queries radb for |
| 375 |
prefixes with that origin. |
| 376 |
Note: for now only JunOS 9.1 can handle asn32, not Cisco IOS.. |
| 377 |
|