444 Commits

Author SHA1 Message Date
Job Snijders
21b574fc91 Current OpenBSD queue.h has STAILQ_ 2021-08-17 12:23:50 +00:00
Job Snijders
757dc33bb0 Add compat dir to AM flags 2021-08-17 12:19:29 +00:00
Job Snijders
82146e291b Add _null.h from OpenBSD 2021-08-17 12:14:07 +00:00
Job Snijders
ac93dcfeef include local headers too 2021-08-17 12:11:05 +00:00
Job Snijders
e6d488ca5b Sync with latest OpenBSD tree.h/queue.h 2021-08-17 12:11:05 +00:00
Job Snijders
dee79b0408 Sync to latest strlcpy() from OpenBSD 2021-08-17 12:11:05 +00:00
Job Snijders
6f7a8db6aa Add m4/ dir to cleanup list 2021-08-17 12:11:05 +00:00
Job Snijders
276b2cfc52 clean up maintainer files 2021-08-17 12:11:05 +00:00
Job Snijders
82b44b1304 Add license to each individual file 2021-08-17 12:11:05 +00:00
Job Snijders
4eb9566de8 Reorganize automake 2021-08-17 12:11:05 +00:00
Job Snijders
f473454ff7 Reorganize compat dir 2021-08-17 12:11:05 +00:00
Job Snijders
16fd7f7668 move .h into include dir 2021-08-17 12:11:05 +00:00
Job Snijders
a0b9343551 Move strlcpy into compat dir 2021-08-17 12:11:05 +00:00
Job Snijders
d998a73652 KNF 2021-08-17 12:11:05 +00:00
Job Snijders
0b554d4aa1 KNF 2021-08-17 10:12:40 +00:00
Job Snijders
406b984aa4 KNF 2021-08-12 08:25:36 +00:00
Stefan Marti
c2223849fc Huawei aspath bugfix (#44)
* bugfix huawei input as-path

* bgpq4_print_huawei_oaspath bug fix
2021-07-13 11:10:22 +00:00
Tony Lee
56432d3c74 Update bgpq4_printer.c (#43)
Correction Juniper route filter list ouput.
2021-07-03 18:41:45 +02:00
Robert Scheck
65f157581b Remove unused markdown check (no more bgpq4.html) (#41) 2021-04-26 23:33:25 +00:00
Robert Scheck
d103cc6e3b Bump version to 0.0.7 to match GitHub tags (#42) 2021-04-26 23:33:02 +00:00
Melchior Aelmans
d4b53ba67e Update README.md (#40)
"data data" is one time "data" too much.
0.0.7
2021-03-30 14:42:51 +00:00
Job Snijders
9498d7f368 Revert conditional clauses around XR prefix list generation
This fixes #39

Thank you Octavio & Lukas
2021-03-16 09:57:43 +00:00
Job Snijders
5f5ce4cff3 Remove select, use system default
Remove not-needed shutdown()

Thanks Theo
2020-12-29 20:03:12 +00:00
Job Snijders
f29576d973 remove readme.header 2020-12-23 15:18:46 +00:00
Brooks Swinnerton
d000627465 Arista EOS Support (#35)
Add Arista EOS support

Thanks Brooks!

This adds support for Arista EOS using a new flag: -e. EOS shares a lot of similarities with IOS,
but there is a difference in the syntax of prefix-lists that I wanted to fix.

The difference can be seen with bgpq4 -S ARIN -4 -s AS36459, which returns:

no ip prefix-list NN
ip prefix-list NN seq 1 permit 192.30.252.0/22
ip prefix-list NN seq 2 permit 192.30.252.0/23
ip prefix-list NN seq 3 permit 192.30.252.0/24
ip prefix-list NN seq 4 permit 192.30.253.0/24
ip prefix-list NN seq 5 permit 192.30.254.0/24
ip prefix-list NN seq 6 permit 192.30.255.0/24

Interestingly, this syntax works fine in EOS, but EOS isn't able to handle the same syntax for ipv6
prefix-lists. Instead, the seq and permit/deny that compose the rule needs to be inside the prefix-list
block.

Now bgpq4 -S ARIN -4 -e AS36459 generates:

no ip prefix-list NN
ip prefix-list NN
    seq 1 permit 192.30.252.0/22
    seq 2 permit 192.30.252.0/23
    seq 3 permit 192.30.252.0/24
    seq 4 permit 192.30.253.0/24
    seq 5 permit 192.30.254.0/24
    seq 6 permit 192.30.255.0/24
2020-12-23 15:07:23 +00:00
Job Snijders
884a982718 Update contact 2020-12-23 15:01:51 +00:00
Job Snijders
71cbcf7019 more cleanup 2020-12-23 15:01:32 +00:00
Job Snijders
03bc8d47dc Remove bgpq4.html 2020-12-23 14:59:34 +00:00
Job Snijders
b361671c45 Improve manpage 2020-12-23 13:49:50 +00:00
Job Snijders
a624dc9649 Merge pull request #26 from robert-scheck/man
Avoid man page macro warnings
2020-12-23 14:41:40 +01:00
Job Snijders
fd6150a2dd update contact info 2020-12-23 13:40:37 +00:00
Job Snijders
c05dea14a7 Merge pull request #34 from bswinnerton/respect-sequence-when-no-results
Respect -s when there are no prefix lists
2020-12-23 13:55:07 +01:00
Brooks Swinnerton
12da3fc231 Respect -s when there are no prefix lists
This commit fixes a bug with when there are no prefix list results but
the `-s` argument is passed.
2020-12-20 17:47:40 -05:00
Job Snijders
e21b687467 Merge pull request #29 from mxsasha/patch-1
Add Arch Linux package to readme
2020-09-22 09:06:08 +02:00
Sasha Romijn
7c483de7d3 Add Arch Linux package to readme 2020-09-22 08:52:56 +02:00
Job Snijders
78825a18cf Merge pull request #27 from DamianZaremba/feature/dzaremba/increase-select-timeout
bgpq_expander - Increase the read select timeout to 30 seconds
2020-06-29 15:25:45 +00:00
Damian Zaremba
95edf74de7 bgpq_expander - Increase the read select timeout to 30 seconds
With the current 10 second timeout I have observed intermittent failures reporting `FATAL ERROR:select timeout` when querying large objects.

This has only been observed when using IRRD instances supporting `A` queries which led me down a path of investigating the server side timeout, the default of which in irrd4 is 30 seconds, thus 30 seconds was chosen as the read timeout (bgpq4 currently has no option to pass `!T`).

The increased timeout has been running as a local patch in my environment for more than two months with no observed failures, testing the upstream version locally still results in intermittent failures.

Commentary on the Github issue indicated ~9 second response times from Europe, which could be related to the higher latency (150ms+) cross region.
2020-06-29 16:12:56 +02:00
Robert Scheck
a3f0cd39e2 Avoid man page macro warnings
$ LC_ALL=en_US.UTF-8 MANROFFSEQ='' MANWIDTH=80 man --warnings -E UTF-8 -l -Tutf8 -Z bgpq4.8 > /dev/null
<standard input>:137: warning: macro `RS' not defined
<standard input>:157: warning: macro `RE' not defined
$
2020-06-29 00:34:34 +02:00
Job Snijders
a3053a34b7 Merge pull request #25 from robert-scheck/autotools
AM_CONFIG_HEADER is superseded by AC_CONFIG_HEADERS since July 2002
2020-06-28 22:05:27 +00:00
Robert Scheck
2d96ae5ff8 AM_CONFIG_HEADER is superseded by AC_CONFIG_HEADERS since July 2002
See: https://lists.gnu.org/archive/html/automake/2012-12/msg00038.html
2020-06-29 00:00:03 +02:00
Job Snijders
a3ca5cbcc9 Update README.md 2020-04-26 16:01:31 +02:00
Job Snijders
bb775897d8 Merge pull request #22 from 5u623l20/5u623l20-patch-FreeBSD
Add information about FreeBSD installation
2020-03-29 12:08:07 +02:00
Moin
521aa51262 Add information about FreeBSD installation
bgpq4 has been ported into FreeBSD.
https://svnweb.freebsd.org/ports?view=revision&revision=529782
2020-03-29 15:38:46 +06:00
Job Snijders
d9a2ee92a6 Release 0.0.6 0.0.6 2020-03-12 13:24:44 +01:00
Job Snijders
62b2a56af7 Merge pull request #21 from ccaputo/master
Various for consideration...
2020-03-11 18:09:09 +01:00
Chris Caputo
92d52b9133 Fix totally broken final newline code with '-F'. 2020-03-11 16:22:46 +00:00
Chris Caputo
1d5b375cc3 Enable aggregate support with '-F' (user-defined). 2020-03-11 16:22:46 +00:00
Chris Caputo
e4d72f0505 Fix user-defined format stack-smash ability.
'-F' option: Avoids risk of stack-smashing which was ever so present,
by just fprintf'ing directly to output stream.
2020-03-11 16:22:46 +00:00
Chris Caputo
b71aa3f21d Compiler warning fixes and improved error handling.
Fixes multiple:
  warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
  warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]

Improves some error messages.
2020-03-08 22:57:45 +00:00
Chris Caputo
d8fbae0643 Make A query test only be performed when needed.
Saves an RTT.
2020-03-08 22:51:37 +00:00