summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl
AgeCommit message (Collapse)Author
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
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-09-08Add -4 and -6 flags to irrfilter mode, allowing you to only fetch (youStuart Henderson
guessed it) v4 or v6 from the IRR. Reduces size of the filter file (and thus router resource use) when you only speak IPv4 but you want to filter peers who announce lots of v6 space. ok claudio@
2009-09-08Update irrfilter to support IPv6 and 4-byte AS numbers. IPv6 support basedClaudio Jeker
on work by Tonnerre Lombard I just cleaned it up. OK henning, sthen
2009-08-31Just use UINT_MAX as the maximum 4-byte AS number. It is good enough here.Claudio Jeker
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-12Kill copies of prefixlen2mask and inet6applymask their now in util.cClaudio Jeker
2009-06-06sync bgpd/bgpctl with the common imsg code, making it lib ready as well.Eric Faurot
ok claudio@ pyr@
2009-06-06Document show rib table fooClaudio Jeker
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-04-23allow bgpctl and bgpd.conf to contain 32-bit ASN written in ASPLAINStuart Henderson
format (RFC5396). ok claudio@ henning@
2009-04-14Fixed a few the-the misspellings in comments. Skipped a bunch in ↵Janne Johansson
binutils,gcc and so on. ok jmc@
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-08-31Fix AS check in parse_community() -- well-known communities have the ASClaudio Jeker
part set to COMMUNITY_WELLKNOWN which is the same as USHRT_MAX. Figured out by Greg Skinner
2008-06-15Fix minor mem leak in case parse_addr() fails.Claudio Jeker
2008-06-11getcwd can return NULL on error, so handle that case properly.Tobias Stoeckmann
ok henning
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-10-14do not fallthroughTheo de Raadt