summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl
AgeCommit message (Collapse)Author
2017-11-27lenght->length, mostly in commentsStuart Henderson
2017-10-16Ensure last character in ssv mode is a newlinejob
OK benno@
2017-10-15Add "ssv" variant which turns a rib route output into a singleTheo de Raadt
semicolon-seperated line, so that grep and such can operate easier; then use tr ';' '\n' to convert it to normal form later. This helps with scanning vast swathes of routes.. ok benno claudio job
2017-09-21word fix; from tom smythJason McIntyre
2017-08-10replace memcpy() with assignements where the type is the same.Sebastian Benoit
noticed by deraadt@, ok claudio@
2017-08-10handle extended communities in bgpctl.Sebastian Benoit
From Dennis Fondras, thanks! ok phessler@
2017-06-26don't print the WELLKNOWN string for unknown well-known communitiesPeter Hessler
from Job Snijders ok phessler@ benno@
2017-06-26let admins set an unknown well-known communityPeter Hessler
from Job Snijders ok phessler@ benno@
2017-06-26add support for the "graceful shutdown" well-known community as describedPeter Hessler
in draft-ietf-grow-bgp-gshut from Job Snijders ok phessler@ benno@
2017-05-31Update ext community printer to the changes done in bgpd.Claudio Jeker
OK henning@ benno@
2017-05-29missing .El;Jason McIntyre
2017-05-29change section title in bgpd.conf talking about MPLS,Sebastian Benoit
add a bit about working with multiple bgpds in rdomains in bgpctl. shouting from claudio@ and help from jmc@
2017-05-29avoid Xr to self;Jason McIntyre
2017-05-29change bgpd's control socket from /var/run/bgpd.sock toSebastian Benoit
/var/run/bgpd.sock.<rdomain> in both bgpd and bgpctl. makes life easier for admins. ok phessler, claudio, henning, feedback from Job Snijders
2017-02-14fix a crash when parsing large community given on the command lineSebastian Benoit
found by jsg@, fixed by phessler@ and strsep() by me. fix memory leak jsg@ ok jsg@ phessler@
2017-02-13draft-ietf-idr-shutdown extends to support a message on either ofPeter Hessler
"Administrative Shutdown" or "Administrative Reset" patch submitted by Job Snijders, thanks!
2017-01-23Mission accomplished, bgpctl is now fatal free.Claudio Jeker
2017-01-23Kill the timer.c reacharound it is not needed.Claudio Jeker
2017-01-23cleanup log* functions that break with bgpd reacharoundSebastian Benoit
ok claudio@
2017-01-13Add support for draft-ietf-idr-shutdownPeter Hessler
BGP state = Idle, marked down with shutdown reason "goodbye, we are upgrading to openbsd 6.1", down for 00:00:17 developed by Peter van Dijk <peter.van.dijk@powerdns.com> and Job Snijders <job@ntt.net>, thank you! OK benno@
2016-10-26nicer list width; from julien dhailleJason McIntyre
2016-10-14Add support for draft-ietf-idr-large-communityPeter Hessler
Joint work with Job Snijders, many thanks! OK benno@ deraadt@
2016-10-14when looking at the details of a prefix, show any unknown attributes andPeter Hessler
what we know about it. OK claudio@
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