summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl
AgeCommit message (Collapse)Author
2016-06-03Add operators =, !=, - (range), >< (exclsive range) to the as-pathSebastian Benoit
filters (AS, peer-as, source-as, transit-as). Add a use case (block illegal AS numbers) to the bgpd.conf example. feedback from claudio, sthen, florian, ok florian@ phessler@
2016-05-25new sentence, new line, and avoid line wrap;Jason McIntyre
2016-05-25flesh out "show summary" description a bit, from julien at dhaille.com viaHenning Brauer
jmc, ok benno claudio
2015-12-23Remove NULL-checks before free(). I think I've almost scrubbed themmcc
entire tree of these...
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-11-18err(1, "foo") -> err(1, NULL) for strdup()mmcc
2015-11-01pledge in bgpctl.Sebastian Benoit
ok deraadt
2015-10-25zap trailing whitespace;Jason McIntyre
2015-10-24clarify use of "bgpctl show rib in|out neighbor FOO"Sebastian Benoit
feedback from jmc@
2015-10-24Implement the missing bits to parse the other MRT message types.Claudio Jeker
Printing bgp messages is still missing lots but at least it is a start. I onced abused tcpdump's bgp protocol handler for this but that is an ugly hack.
2015-10-24Print if a route is redistributed or not at least for static & connected.Claudio Jeker
With phessler@
2015-10-11Handle the blackhole well-known community in bgpctl as well (print itStuart Henderson
symbolically, and don't deny its use in 'bgpctl sh rib comm 65535:6666'). ok phessler@
2015-10-11add "best" as an alias for "selected"Peter Hessler
Helps finger memory for people used to Junipers OK benno@, claudio@
2015-10-05these 3 files do not need sys/socket.hTheo de Raadt
2015-09-16Another ifmedia64 fix, this time for bgpd's ift2ifm().Stefan Sperling
And rename struct kif's media_type to if_type to avoid confusion with ifmedia's media type. Same rename in other daemons will follow. ok claudio henning benno
2015-09-13match a few if_media uint64_t conversions; ok miodTheo de Raadt
2015-07-19Match change to fatal()'s prototype in bgpdPhilip Guenther
ok benno@
2015-07-18Tag dynamic routes with a D so I do not get confused when seeing dynamicClaudio Jeker
routes because of PMTU in the show fib output.
2015-04-26for every policy we write out, flush the output so we don't get anPeter Hessler
irritating partially written line
2015-04-25some people are capitalizing keywords, so ignore case when we test the tokensPeter Hessler
OK henning@ benno@
2015-04-25allow us to write rules that match directly on the peer ASPeter Hessler
... allow from AS 1 prefix 192.0.2.0/24 ... Also adjust the IRR ruleset output to include the declared peer AS, instead of hoping they listed their neighbor IP address! OK benno@ older version OK: claudio@ henning@
2015-04-25handle an IRR record of "export ... action X" the same way we handlePeter Hessler
"import ... action X". OK benno@ henning@
2015-04-17parse_prefix in parse.c got changed but the declaration in bgpctl.cPeter Hessler
wasn't updated, so we would crash when doing `bgpctl net bulk` commands. Fix by moving parse_prefix into a header, since we use it in more than one file. crash found by henning@ underlying problem found by blambert@ OK sthen@ deraadt@ claudio@ henning@
2015-02-11show if we are using a transport security mechanism other than "none"Peter Hessler
OK claudio@
2015-02-04potential double free in while-loopHenning Brauer
Benjamin Baier <ben at netzbasis dot de>
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
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