summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/bgpctl.c
AgeCommit message (Collapse)Author
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
2013-11-13handle msgbuf_write() returning EAGAIN, looks right to deraadtStuart Henderson
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-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-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-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@
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-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-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-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-02Implement "log verbose" and "log brief" to enable or disable verbose debugClaudio Jeker
logging. henning, sthen, michele like the idea
2009-10-23errx -> err since the errno is set.Claudio Jeker
2009-09-15In bgpctl sh nei, display whether a neighbour is set to use passiveStuart Henderson
mode and/or E-BGP multihop. Ok and suggestions from claudio@
2009-09-14Switch the various link state printing codes to use the new if_mediaClaudio Jeker
independent LINK_STATE_DESCRIPTIONS. Code is now more or less a one to one copy of get_linkstate() in route/route.c. OK henning, michele, sthen, deraadt
2009-07-23Update bgpctl show next to show all necessary info. This time OK henning@Claudio Jeker
2009-07-21sorry, but showing a diff, getting an explicit "not ok" and then committingHenning Brauer
anyway without oks is not our process
2009-07-20Try to show a more usable nexthop output. It may still change but at leastClaudio Jeker
it is better than what we had till now and syncs up with the last bgpd change.
2009-06-06sync bgpd/bgpctl with the common imsg code, making it lib ready as well.Eric Faurot
ok claudio@ pyr@
2009-06-06bgpctl part of allowing alternate RIBs to be shown. Had to use theClaudio Jeker
keyword table because show rib rib foo is strange.
2009-05-17Adjust for IMSG_CTL_SHOW_NETWORK change in the RDE. IMSG_CTL_SHOW_NETWORK isClaudio Jeker
now using the same payload as IMSG_CTL_SHOW_RIB.
2009-05-17Adjust show rib memory output after the monster commit to bgpd.Claudio Jeker
2009-02-01embellish the output of bgpctl(8).Igor Sobrado
ok claudio@
2008-12-12Make bgpctl priority aware.Claudio Jeker
2008-12-10convert the aggregator's AS number into host byte order whenStuart Henderson
displayed in "show rib detail". ok claudio@
2008-12-06the ellipsis allows more than one argument being specified.Igor Sobrado
discussed with gilles@ ok jmc@
2008-06-07repair usage, jmcHenning Brauer
2008-06-07teach the command lineparser about getopt style options after commandsHenning Brauer
use that for irrfilter mode. hints from theo a year ago, code by me a year ago, ok claudio a year ago
2008-02-24Add missing space when printing ext. communities.Claudio Jeker
2008-01-23extend bgpctl show rib detail output to include more attributes in the output.Claudio Jeker
In addition to communities bgpctl now prints the aggregator, originator id, cluster list and extended communities if available. OK henning@
2007-12-23send timers for bgpctlshow neighbor foo timer in seperate messages afterHenning Brauer
the peer data. makes bgpctl display code independent from timer implementation internals. only running timers are displayed now, stopped ones are skipped.
2007-12-20rework timers.Henning Brauer
stop changing tienmr values directly, always use new timer_(get/set/stop/running) functions. preparation for more to come :) ok claudio
2007-10-15specifying int instead of just unsigned is better styleTheo de Raadt
2007-09-11baudrate is 64bit now, plus print w/ %lluHenning Brauer
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-05-31Use COMMUNITY_UNSET in bgpctl as well. This makes it possible to filterClaudio Jeker
on communities with 0 in them.