1
0
mirror of https://github.com/bgp/stayrtr.git synced 2024-05-06 15:54:54 +00:00

28 Commits

Author SHA1 Message Date
041a1c52f3 Remove ineffectual assign 2021-10-25 20:21:07 +02:00
968c0d5db1 Move to TDD for clients 2021-10-24 19:30:55 -04:00
fe8a0f4632 initial client test set up 2021-10-24 15:26:47 -04:00
e4acfc2178 ifs to switch 2021-10-24 10:46:03 -04:00
a72ccbe4ad More cleanup 2021-10-24 10:37:42 -04:00
0bbe564d58 Correct terminology helps communicate more clearly about what is happening
Validators (such as rpki-client) ingest ROAs and emit Validated ROA Payloads (VRPs).
RTR servers exclusively deal with ingesting VRPs and emitting VRPs via RTR.
2021-05-08 15:26:08 +00:00
d6cb793104 Fix: unbounded alloc and slice out of bounds crashes
In rtrlib.Decode():
* Now check the message length is not greater than a hardcoded limit
(2048) to prevent unbounded memory allocations
* Fix a few unchecked slice accesses that could result in crashes with the
right payload in the PDU_ID_ERROR_REPORT case.
2020-07-22 00:56:58 +02:00
fea0197495 Fix spelling 2020-07-02 17:36:26 +10:00
107c06a4d6 More debug options on GoRTR 2020-06-05 17:58:58 -07:00
60070fffdb Protection against "too many open files"
* Raised in #65, if the server does not have enough sockets, Accept returns error
* Due to a bug, it was causing `invalid memory address or nil pointer dereference` if no other limit was specified
* Issue was triggered around 1024 concurrent sessions on out of box Linux (check `ulimit -a | grep "open files"`)
2020-05-18 14:51:28 -07:00
fb7be39c6a Merge pull request #56 from cloudflare/feature/json-serials
Serial control
2020-03-30 13:36:05 -07:00
b4f0245713 Serial control
* Set three modes of operating serial:
  * Default: serials will start at 0 and increment at every change
  * Beginning: serial will be set to the value found in the JSON then increment at every change
  * Full: serial will be set based on the value found in the JSON at each refresh
2020-03-29 18:07:59 -07:00
14e36573ba PDU EOD now prints timers 2020-03-27 17:46:52 -07:00
14a278569f Options to set session ID and timers via CLI
* Also fixes a session ID bug where the variable was never random
* Introduces the following flags: `rtr.sessionid`. `rtr.refresh`, `rtr.retry` and `rtr.expire`

Resolves issue #52
2020-03-27 16:53:29 -07:00
c9e9f19080 Optimization of diff (see #32) using maps instead of N*N operation 2019-10-20 23:22:30 -07:00
b6f49611c3 Small update
* SSH now allows key authentication (small API changes)
* User agent contains version
* README specifies notes for SSH implementation
2019-04-11 16:31:04 -07:00
8672363e36 Go fmt 2019-04-05 15:42:54 -07:00
3cf0a35f2a Protocol update:
* Add SSH support in library.
* GoRTR and RTRdump to use SSH with user/password or without auth
* Updated README with simple compatilibty matrix,
  SSH configuration, Cisco configuration.
2019-04-05 15:27:57 -07:00
ae09564516 Go fmt 2018-11-12 20:59:38 -08:00
94d9ce55fd Refactor server, logging options 2018-11-12 20:58:18 -08:00
eb025127a0 Finalized handler 2018-11-12 20:45:28 -08:00
8f6f16dbd0 RTRdump: dump the content of a RTR server in JSON format 2018-11-12 19:10:39 -08:00
bdc3984231 Fixes #9: segfault when incomplete packet 2018-10-22 17:00:39 +01:00
c1a96dbfdf Refactoring:
* Moved app in cmd directory
* Moved structures into "file" package
* Inserted cryptographic checks (signature) and validity checks
2018-09-13 14:41:09 -07:00
9d057d936e Fix EOF issue 2018-08-28 15:13:38 -07:00
8bf2009ea1 Bugfix: bad diff calculation, notification of clients available 2018-08-07 11:58:48 -07:00
a2cf651a9d Added Dockerfile, bugfix 2018-08-07 11:09:50 -07:00
0b2cab204a Init 2018-08-06 16:08:24 -07:00