Commit Graph

79 Commits

Author SHA1 Message Date
Job Snijders
b21c8b30ca remove unused includes 2021-08-17 22:23:33 +00:00
Job Snijders
85d833ca48 Fix style and compiler warnings 2021-08-17 19:34:30 +00:00
Job Snijders
6a4207f940 rename headerfile 2021-08-17 17:26:10 +00:00
Job Snijders
82b44b1304 Add license to each individual file 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
5f5ce4cff3 Remove select, use system default
Remove not-needed shutdown()

Thanks Theo
2020-12-29 20:03:12 +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
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
Job Snijders
8b5459cf05 Add additional debug lines 2019-12-31 11:32:25 +01:00
Job Snijders
bc16d6fb45 Merge branch 'master' of github.com:bgp/bgpq4 2019-12-31 00:02:31 +00:00
Job Snijders
10cdd5656d Remove the option to disable 32-bit ASN support
This removes the '-3' command line option and fixes #3.
2019-12-30 23:58:47 +00:00
Gerdriaan Mulder
4a2fe3d966 Remove superfluous semi-colon after closing brace 2019-12-30 20:55:38 +01:00
Job Snijders
50d4dbaf28 Remove support to expand as23456 entirely 2019-12-30 18:33:35 +00:00
Job Snijders
7d6c4421de Apply OpenBSD's style(9) code formatting 2019-12-30 18:00:53 +00:00
Job Snijders
2e2a8255b8 Implement support for the A query
This should significantly speed up common uses of this program
2019-12-30 03:32:53 +00:00
Job Snijders
d97ced248a First of all, identify the client 2019-12-30 02:24:19 +00:00
Peter Schoenmaker
03e3b11d95 Fix memory leaks 2019-12-22 16:05:05 +01:00
Job Snijders
5eaeb69f63 Use rr.ntt.net as default IRRd instread of RADB 2019-12-14 14:42:49 +01:00
Job Snijders
26f49e46a5 Rename bgpq3 to bgpq4 2019-12-14 14:41:14 +01:00
Alexandre Snarskii
d607a8ab04 drop nonblocking before closing socket 2019-08-15 20:11:03 +03:00
Alexandre Snarskii
f8a32c67c6 use asplain notation in irrd queries 2018-11-30 12:40:25 +03:00
Alexandre Snarskii
7d2a9f185b 'backport' asn validation in -f/-G 2018-09-05 14:47:30 +03:00
Alexandre Snarskii
f199f1a7c7 fix ipv6 prefix-ranges. 2018-08-14 12:42:18 +03:00
Alexandre Snarskii
1acef0240a check for allocation problems on low-memory systems. 2018-06-03 16:53:54 +03:00
Alexandre Snarskii
aed955f868 correct handling for too large sources list 2017-07-19 20:43:53 +03:00
Alexandre Snarskii
99260c1267 check/include sys/select.h if present. 2017-06-12 20:11:39 +03:00
Alexandre Snarskii
def51b4c17 handle socket() EAFNOSUPPORT as non-fatal error. 2017-02-08 12:18:08 +03:00
Alexandre Snarskii
d5036d10c1 rollback 0.1.32-rc2 (2015-07-01). 2016-08-28 19:15:50 +03:00
Alexandre Snarskii
09f5e6db0e Allow use of alternate port in -h host[:port] 2015-08-30 14:38:18 +03:00
Alexandre Snarskii
dabcb674f5 ignore 'any' object: usually it is emitted by members-by-ref: any. 2015-07-13 20:21:32 +03:00
Alexandre Snarskii
f8a0565c5f stoplist shall work for asns too. 2015-07-13 14:36:13 +03:00
Alexandre Snarskii
647ee18794 linux compatibility. 2015-07-12 18:57:22 +03:00
Alexandre Snarskii
f0827d505f well, internals rewrite seems working. also, stoplist implemented. 2015-07-12 17:31:09 +03:00
Alexandre Snarskii
aa043c2f7d callbacks redesigned 2015-07-12 16:42:50 +03:00
Alexandre Snarskii
7ed2ea9174 use select before read, fixes non-L requests. 2015-07-12 15:48:36 +03:00
Alexandre Snarskii
6c466d76d2 ok, new pipelining model seems working. 2015-07-11 20:34:20 +03:00
Alexandre Snarskii
d169fdba7b new pipelining... still buggy 2015-07-10 20:57:30 +03:00
Alexandre Snarskii
aad4f20863 moving to valgring.. 2015-07-10 18:11:01 +03:00
Alexandre Snarskii
1a32e3f47b back to fri 2015-07-10 16:57:46 +03:00
Alexandre Snarskii
81cc58e211 new key -L <limit recursion depth>. 2015-07-10 16:01:22 +03:00
Alexandre Snarskii
0b013b25cb bugfix: no sources in command-line could lead to no source limit sent to IRRd. 2015-07-01 17:09:14 +03:00
Alexandre Snarskii
d383f1aa26 32-bit gcc warning suppressed. 2015-06-28 20:37:55 +03:00
Alexandre Snarskii
c3212921b3 Replace RIPE-style queries with IRRD ones (-T route6 -i origin -> !6asNN). 2015-06-28 19:47:35 +03:00
Alexandre Snarskii
b5f411fa7c new flag -s: as-path sequencing for IOS/Arista. 2015-06-28 19:13:36 +03:00
Alexandre Snarskii
c88911f335 bugfix: shall check reply code for !s sources command too.. 2015-06-26 18:34:57 +03:00
Alexandre Snarskii
9eb665209b pipelining now counts buffer size. 2015-06-23 14:56:05 +03:00
Alexandre Snarskii
19fd9cb752 bugfix: private asns with number > 2^31 were printed as negative integers
and other changes..
2015-06-16 14:57:09 +03:00
Alexandre Snarskii
79f25f663d Do not allow as23456 (transition-as) routes by default. 2015-04-15 12:21:23 +03:00