Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-10-01 | Use auth_conf.method instead of auth_state.method. The latter is always 0. | Claudio Jeker | |
2024-10-01 | Adjust to the pfkey changes in bgpd. | Claudio Jeker | |
OK tb@ | |||
2024-08-22 | inet_pton returns 0 and -1 for error. | Florian Obser | |
Adjust the error check that is now wrong after the inet_aton -> inet_pton conversion. Noticed by & OK bluhm. OK tb | |||
2024-08-21 | Use inet_pton to parse ext-communities with an IPv4 address. | Florian Obser | |
No need for inet_aton's flexibility. OK claudio | |||
2024-08-20 | Use stats.msg_queue_len instead of looking into the msgbuf struct. | Claudio Jeker | |
OK tb@ | |||
2024-08-14 | Add 'bgpctl show rib filtered' support. | Claudio Jeker | |
OK tb@ | |||
2024-08-12 | Print min-version of a RTR session. | Claudio Jeker | |
OK tb@ | |||
2024-05-22 | Adjust code since remote_bgpid, bgpid and clusterid changed to | Claudio Jeker | |
host byte order. OK tb@ | |||
2024-04-24 | announce_capa is no more. | Claudio Jeker | |
OK tb@ | |||
2024-02-01 | Convert the mrtparser to use ibufs in many places. | Claudio Jeker | |
More is possible but for now this covers most of the message parsers. OK tb@ | |||
2024-01-31 | Convert IMSG_CTL_SHOW_RIB_ATTR over to the new ibuf API. | Claudio Jeker | |
This converts show_attr() and json_attr() and with that also the community specific functions. This removes some hacks inside of show_attr() that where added before. OK tb@ | |||
2024-01-30 | Adjust bgpctl to work with the modified aspath functions from util.c | Claudio Jeker | |
While doing that convert IMSG_CTL_SHOW_RIB over to the new ibuf api. OK tb@ | |||
2024-01-25 | Siwtch IMSG_CTL_SHOW_RIB_COMMUNITIES over to the new ibuf api. | Claudio Jeker | |
Adjust fmt_ext_community() to take a uint64_t as argument instead of passing a pointer. OK tb@ | |||
2024-01-23 | Adopt bgpctl code to the ibuf changes done in bgpd. | Claudio Jeker | |
Adjust code that calls nlri_get_prefix() and friends to work with an ibuf. show_mrt_update() is mostly converted because of this. The output functions and the rest of the mrtparser are just minimally touched to keep the diff reasonable. OK tb@ | |||
2024-01-23 | Fixup more spaces | Claudio Jeker | |
2024-01-23 | Spaces | Claudio Jeker | |
2024-01-18 | Convert the simple imsgs to use imsg_get_data(). | Claudio Jeker | |
OK tb@ | |||
2024-01-11 | Move the 'Last received shutdown reason:' output a bit down where it makes | Claudio Jeker | |
more sense. | |||
2024-01-11 | Display the exported rtr session state and fix a missing indent. | Claudio Jeker | |
OK tb@ | |||
2024-01-10 | Add missing newlines in printf. | Claudio Jeker | |
2024-01-08 | Simplify the IMSG_CTL_KROUTE after the change in bgpd. | Claudio Jeker | |
OK tb@ | |||
2023-12-19 | Show the RTR protocol version in the `bgpctl show rtr` output. | Claudio Jeker | |
Knowing the version is essential to understand if ASPA PDUs are included or not. OK tb@ | |||
2023-11-20 | Rename struct imsgbuf *ibuf to *imsgbuf. Same was done in bgpd. | Claudio Jeker | |
OK tb@ | |||
2023-11-20 | KNF, fix long line. | Claudio Jeker | |
OK tb@ | |||
2023-11-20 | KNF | Claudio Jeker | |
2023-09-06 | Add missing <sys/time.h> include for timespecsub() | Claudio Jeker | |
2023-06-22 | KNF | Claudio Jeker | |
2023-06-05 | Sync json.c with rpki-client rev 1.3: | Claudio Jeker | |
Add an extra argument compact to json_do_object() to instruct the parser to dump this object on a single line. While one can select on an object to object basis for arrays the compact setting is inherited from the surrounding object. OK tb@ | |||
2023-05-09 | Rename 'invalid' to 'disqualified' in the 'show rib' table. | Claudio Jeker | |
'invalid' conflicts with the 'in' keyword and the parser is not smart enough to handle this. As a secondary benefit the term 'invalid' is less overloaded. There are various reasons why prefixes are not eligible in the route decision process calling them all 'invalid' is a bit harsh. job@, tb@ and benno@ agree | |||
2023-05-05 | Sync json.c with the one from rpki-client. This adds json_do_string(). | Claudio Jeker | |
Convert json_do_printf() calls using static strings or "%s" fmt over to json_do_string() in the json output. OK tb@ | |||
2023-04-28 | Same change as in bgpd: | Claudio Jeker | |
Add explicit default labels in switch() statements with error handling. Right now these are not reachable. Should also clear some gcc warnings. OK tb@ | |||
2023-04-26 | Use < 0 for fprintf() error checking and not == -1. | Claudio Jeker | |
2023-04-26 | Verify each fprintf call for success. On failure stop calling fprintf | Claudio Jeker | |
and return -1 in json_do_finish(). tb@ thinks this is not to horrible | |||
2023-04-26 | Use fprintf instead of printf and pass the FILE handle in json_do_start(). | Claudio Jeker | |
OK tb@ | |||
2023-04-26 | Whitespace | Theo Buehler | |
"please fix" json | |||
2023-04-23 | Flowspec show support an address family argument. Copy the description | Claudio Jeker | |
from the very similar 'network show'. | |||
2023-04-23 | For FLOWSPEC_SHOW conver the AID form regular inet/inet6 to flowspec versions. | Claudio Jeker | |
OK tb@ | |||
2023-04-23 | Document flowspec commands | Claudio Jeker | |
OK tb@ jmc@ | |||
2023-04-21 | Adjust ext community handling to support the generic transitive communities | Claudio Jeker | |
introduced with flowspec. OK tb@ | |||
2023-04-21 | Implement flowspec add and delete to add/remove flowspec rules dynamically. | Claudio Jeker | |
OK tb@ | |||
2023-04-20 | Implement bgpctl show flowspec and bgpctl flowspec flush. | Claudio Jeker | |
This uses the flowspec.c file from bgpd and implements the output for flowspec only for the text printer for now. That code uses a lot of code from printconf.c OK tb@ | |||
2023-04-17 | Convert all users of parse_number() to also process the next element | Claudio Jeker | |
like it was done for communities. Again a fair amount of token tables disappear. OK tb@ | |||
2023-04-17 | In parse_prefix and parse_addr only touch the addr if the functions is | Claudio Jeker | |
successful. Do not clear it all the time since that breaks the ANYTOKEN fallback since it resets the just set address on the next argument. OK tb@ | |||
2023-04-17 | Passing argv as tripple indirect pointer to match_token() is just strange. | Claudio Jeker | |
Instead pass argc and argv as value and return the consumed number of arguments in argsused (normally 1). OK tb@ | |||
2023-04-17 | Rework how communities are parsed. Use tha fact that argv and argc are | Claudio Jeker | |
available inside match_token() and peek and consume argv[1] and for ext-communities also argv[2]. OK tb@ | |||
2023-04-15 | Introduce an ANYTOKEN token which can be used instead of NOTOKEN to allow | Claudio Jeker | |
to fall back to another table if no other element in the current table matched. ANYTOKEN needs to be the last element in a table. With this 'bgpctl show rib 192.0.2.1 detail' works. OK tb@ | |||
2023-04-13 | Sort commands alphabetically both in the tables and manpage. | Claudio Jeker | |
OK tb@ | |||
2023-04-12 | bgpctl network bulk requires now the specification of 'add' or 'delete'. | Claudio Jeker | |
In the add case the extra attributes can be specified afterwards. This makes the parser behave cleaner since 'add' and 'delete' are removed from the attribute set table. OK tb@ | |||
2023-03-28 | Use pt_size from struct rde_memstats instead of computing it by hand. | Claudio Jeker | |
OK tb@ | |||
2023-03-13 | Extend bgpctl show rib with two new options: | Claudio Jeker | |
- invalid: show only routes that are not valid - leaked: show only routes where a route leak was detected OK tb@ |