summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl
AgeCommit message (Collapse)Author
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
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@