summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl
AgeCommit message (Collapse)Author
2015-01-09move the ignore-microsec-timestamp bit from mrt_parse to mrt_parse_dump_mpHenning Brauer
fixes a coredump reachable via show mrt file From: Benjamin Baier <programmer at netzbasis dot de>, ok claudio
2014-11-19reduce redundant strlen calls by calling it once and saving the valueTed Unangst
2014-10-08Use reallocarray() throughout to spot multiplicative int overflow.Theo de Raadt
ok henning benno
2014-10-02bgpctl show summary output: enlarge columns for 4-byte ASN displaySebastian Benoit
diff by Gregor Best (gbe AT ring0 DOT de), i just tweaked the column calculation based on comments from claudio@ ok sthen@ henning@
2014-08-14remove two duplicate command entries;Ingo Schwarze
reported by Denis Fondras <openbsd at ledeuns dot net>
2014-03-18Correctly parse attribute length form imsg. While there don't assignFlorian Obser
data twice. From rivo nurges ris _AT_ estpak _DOT_ ee, thanks! OK sthen
2014-01-05missing newline on error messageTheo de Raadt
2013-11-22unsigned char casts where needed for for ctype.hTheo de Raadt
checked by florian
2013-11-13handle msgbuf_write() returning EAGAIN, looks right to deraadtStuart Henderson
2013-10-27If a constant string needs a name, use a static const array instead of aPhilip Guenther
pointer or non-const array, as that minimizes the symbols, maximizes the placement into read-only memory, and avoids warnings from gcc -Wformat=2 when they're used as format strings. ok deraadt@
2013-10-09tweak previous;Jason McIntyre
2013-10-09Allow us to bulk add / delete routes with the same attributes. ReallyPeter Hessler
useful for distributing IP lists. OK beck@, claudio@, henning@
2013-08-18Fix calls to printf-like functions which passed a non-fixed stringPhilip Guenther
as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when a precision is specified. ok jung@ millert@ krw@
2013-05-07fix some leaks in error pathsJonathan Gray
ok claudio@
2013-04-09do not store a time_t or the result of a time_t division in an intGilles Chehade
prompted by deraadt@, ok claudio@ chl@ guenther@
2013-03-07Implement a bgpctl nei foo destroy that will remove the specified clonedClaudio Jeker
neighbor. The neighbor must be set down before calling this function. OK phessler
2012-11-27Fix type typoPhilip Guenthe
ok henning@
2012-11-15If max-prefix/restart are used, display the values in "bgpctl sh nei" output.Stuart Henderson
ok henning claudio benno
2012-09-26last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-18Print the wieght in the show rib detail output. OK sthen@, henning@Claudio Jeker
2012-09-12bgpctl bits for the GR support added to bgpd.Claudio Jeker
OK sthen
2012-06-30strip trailing \r from rpsl route: lines for irrfilter, they have been seenStuart Henderson
in the wild and break parsing. ok henning@
2012-05-27tweak previous;Jason McIntyre
2012-05-27Document network mrt file [ filter] used to load mrt dumps into bgpd.Claudio Jeker
2012-05-27Make it possible to load mrt table dumps into bgpd. This is a debug tool butClaudio Jeker
it allows anyone to use MRT table dumps to load prefixes into a bgpd instance. For example you can download the RIPE dumps and load full-feeds onto your laptop until the poor thing dies. OK henning@ sthen@
2012-03-27Introduce "selected" as show rib attribute to only show selected routes.Claudio Jeker
Can be combined like: bgpctl show rib nei peer1 selected to only show the routes that are used from neighbor peer1. Requested by and OK deraadt@, OK henning@
2012-03-26Add a function to extract an address instead of copying the same code overClaudio Jeker
and over again. Also allow the dump attr of struct mrt_parser to be NULL.
2012-03-06Implement a better way to detect the encoding of the MP_REACH_NLRI attr.Claudio Jeker
Check the addr length value of the RFC 6396 encoding to decide if it is one or not. While there try to make the comment more clear.
2011-09-26tweak previous; ok claudioJason McIntyre
2011-09-21Try to document the show mrt command. While there order the filtersClaudio Jeker
for both show mrt and show rib.
2011-09-21Make it possible to parse MRT table dumps (all 3 formats) and displayClaudio Jeker
them like the show rib / show rib detail output. It is also possible to filter the output. e.g. bgpctl show mrt file ./bview.20110914.1600 as 22512 204.209.0.0/16 all OK sthen@, put it in henning@
2011-09-21Unbreak the tree. I forgot to add a fatalx() stub to bgpctl.Claudio Jeker
2010-09-02remove trailing spaces and tabs from source code; no binary changesIgor Sobrado
(verified by both sthen@ and me). ok sthen@; "just commit it" claudio@
2010-05-26Move imsg into libutil and add a man page.Nicholas Marriott
Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
2010-05-10Simplify wording about abbreviating commands. ok claudioStuart Henderson
2010-05-10Various comment typos. 'wether' -> 'whether' (most popular), 'possiblity' ->Kenneth R Westerback
'possibility', 'optins' -> 'options', 'resposne' -> 'response', 'unecessary' -> 'unnecessary', 'desination' -> 'destination'. Collected from various misc@ and tech@ postings, many by Brad Tilley.
2010-05-03Adjustments for multiple kroute table support. This adds a few new commandClaudio Jeker
arguments (show tables and show fib table 1, etc). Tested by sthen@, OK to move on by henning@
2010-04-13Sync with last bgpd commit, there are no AF_INET and AF_INET6 specificClaudio Jeker
kroute messages anymore.
2010-03-08res.flags is not only used by the irrfilter so initializing them withClaudio Jeker
irrfilter flags is causing strange behaviour on other commands (like show fib). Set the IPV4 and IPV6 flags at the end unless one of them got already set. OK henning, sthen, deraadt
2010-02-11Force a space between address and nexthop. IPv6 is overflowing all sizeClaudio Jeker
restrictions and 2001:4bf8:bad:beef::/64fe80::20a:e4ff:fe39:5583 is not acceptable.
2010-01-13Add VPNv4 to the understood address families in bgpctl.Claudio Jeker
OK henning@, reyk@
2010-01-10ribreq uses now a AID, use AID also on the parsing side and convert toClaudio Jeker
AF when necessary. OK henning@
2009-12-16Use log_ext_subtype() instead of the homebrew version (which actually gotClaudio Jeker
moved to bgpd but that does not matter). OK henning and sthen
2009-12-08Must byte-swap extended community data before printing since it is inClaudio Jeker
network byte order. Found and tested by Pete Vickers.
2009-12-08Split out some code into own function to make the code a bit nicer.Claudio Jeker
OK henning@ upon his request
2009-12-08Big AID change part 2 bgpctl part. Cope with the changes in bgpd, more toClaudio Jeker
follow. OK henning
2009-12-01Update code to use the new AID address ids so that this works again withClaudio Jeker
bgpd. Reads OK henning@
2009-11-03sort;Jason McIntyre
2009-11-02Implement "log verbose" and "log brief" to enable or disable verbose debugClaudio Jeker
logging. henning, sthen, michele like the idea