summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/parser.c
AgeCommit message (Expand)Author
2015-10-11Handle the blackhole well-known community in bgpctl as well (print itStuart Henderson
2015-10-11add "best" as an alias for "selected"Peter Hessler
2015-10-05these 3 files do not need sys/socket.hTheo de Raadt
2015-04-17parse_prefix in parse.c got changed but the declaration in bgpctl.cPeter Hessler
2014-11-19reduce redundant strlen calls by calling it once and saving the valueTed Unangst
2014-01-05missing newline on error messageTheo de Raadt
2013-10-09Allow us to bulk add / delete routes with the same attributes. ReallyPeter Hessler
2013-03-07Implement a bgpctl nei foo destroy that will remove the specified clonedClaudio Jeker
2012-05-27Make it possible to load mrt table dumps into bgpd. This is a debug tool butClaudio Jeker
2012-03-27Introduce "selected" as show rib attribute to only show selected routes.Claudio Jeker
2011-09-21Make it possible to parse MRT table dumps (all 3 formats) and displayClaudio Jeker
2010-05-03Adjustments for multiple kroute table support. This adds a few new commandClaudio Jeker
2010-03-08res.flags is not only used by the irrfilter so initializing them withClaudio Jeker
2010-01-13Add VPNv4 to the understood address families in bgpctl.Claudio Jeker
2010-01-10ribreq uses now a AID, use AID also on the parsing side and convert toClaudio Jeker
2009-12-01Update code to use the new AID address ids so that this works again withClaudio Jeker
2009-11-02Implement "log verbose" and "log brief" to enable or disable verbose debugClaudio Jeker
2009-09-08Add -4 and -6 flags to irrfilter mode, allowing you to only fetch (youStuart Henderson
2009-08-31Just use UINT_MAX as the maximum 4-byte AS number. It is good enough here.Claudio Jeker
2009-06-12Kill copies of prefixlen2mask and inet6applymask their now in util.cClaudio Jeker
2009-06-06bgpctl part of allowing alternate RIBs to be shown. Had to use theClaudio Jeker
2009-04-23allow bgpctl and bgpd.conf to contain 32-bit ASN written in ASPLAINStuart Henderson
2008-08-31Fix AS check in parse_community() -- well-known communities have the ASClaudio Jeker
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
2008-06-07teach the command lineparser about getopt style options after commandsHenning Brauer
2007-10-14do not fallthroughTheo de Raadt
2007-05-31Use COMMUNITY_UNSET in bgpctl as well. This makes it possible to filterClaudio Jeker
2007-05-28parse_asnum must return 0 (no match) if word is not an as number insteadHenning Brauer
2007-04-23bgpctl needs to know about 4-byte AS numbers as well.Claudio Jeker
2007-04-06Implement "bgpctl show neighbor <peer> terse" this will print all statisticsClaudio Jeker
2007-03-31some KNF, partially pt out by rivo nurges <rix@estpak.ee>Henning Brauer
2007-03-28add support for bgpctl show rib community <community>Henning Brauer
2007-03-07support "bgpctl show rib peer-as NN", From: Armin Wolfermann <aw@osn.de>Henning Brauer
2007-03-03add irrfilter mode.Henning Brauer
2007-02-22minor KNF bits here tooHenning Brauer
2007-02-01Correct function name in err() message.Claudio Jeker
2007-01-31Switch from strtoul() to strtonum() making the code easier to read.Claudio Jeker
2007-01-25Correctly detect missing arguments. Same diff as in ospfctl. OK henning@Claudio Jeker
2006-08-23Extend show rib command. Following new options are added:Claudio Jeker
2006-06-15Move the PREFIX token to the end of the list. The other tokens are moreClaudio Jeker
2006-06-14Use inet_net_pton() instead of inet_pton() so that it is possible to useClaudio Jeker
2006-05-26change keyword for route refresh request to just refresh, discussed withHenning Brauer
2006-05-23support requesting route refresh from a neighborHenning Brauer
2006-03-22Detailed RIB output including communities. Detailed output is enabled viaClaudio Jeker
2006-02-09inet_pton() may return 1, 0 or -1. Only 1 is success so check explicitlyClaudio Jeker
2006-01-24introduce "bgpctl show summary terse", shows summary in an easy to parseHenning Brauer
2006-01-03Show RIB statistics via "bgpctl show rib mem".Claudio Jeker
2006-01-03Don't use fatal() and friend in bgpctl. The log system does not work here.Claudio Jeker
2005-12-30Fix parse_prefix() for IPv4 addresses. Looks like fallout after IPv6 addition.Claudio Jeker