summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/parser.c
AgeCommit message (Collapse)Author
2005-09-20allow "show rib" to be limited to an address family tooHenning Brauer
2005-09-20for consistency, make "show network" and alias for "network show"Henning Brauer
2005-09-20allow the "show network" output to be limited to a given address familyHenning Brauer
2005-07-01fix breakage; if this proves to be wrong, will be fixed later. at leastFederico G. Schwindt
make build will work now.
2005-06-16use prefixlen2mask() instead of doing the bitshifting by hand; fixes theHenning Brauer
zero prefixlen case (32 bit shift on 32 bit val -> undefined result) spotted by Moritz Grimm and otto
2005-06-07In case strlcpy() indicates that a string was truncated fail with errx().Claudio Jeker
No need for other strange constructs. OK henning@
2005-06-06add support for a "family" token, allows to select address familiesHenning Brauer
2005-06-05grr, more whitespace KNF, more carrot for claudioHenning Brauer
2005-05-23Make it possible to dynamicaly add networks with attributes like communitiesClaudio Jeker
or metrics. Requested by beck@ OK henning@
2004-12-23allo the "bgpctl show neighbor " commands to take the neighbor descrHenning Brauer
too, claudio ok
2004-12-23must only try to match PEERDESC of nothing else matched, it's just a stringHenning Brauer
and will match almost everything...
2004-12-23allow "bgpctl neighbor" to take the peer's descr as argument as wellHenning Brauer
as its address so "bgpctl neighbor upstream1 clear" now works and you don't have to remember IPs claudio ok
2004-10-26ease the parser a bit.Henning Brauer
parse() now wants the first argv member to be the first argument it parses, i. e. it does not skip over argv[0] any more, caller has to account for that. the caller does the usual getopt followed by argv += optind; argc -= optind; dance so this is accounted for. in parse() don't use a seperate curarg counter, just in/decrease argv/argc claudio ok
2004-08-20add support for "bgpctl neighbor 1.2.3.4 clear", takes session down & up againHenning Brauer
claudio ok
2004-06-17print '<cr>' instead of '(nothing)' when we hit the end token in theHenning Brauer
context-dependent usage help
2004-05-21Make it possible to add, delete, flush and show network announcements.Claudio Jeker
OK henning@
2004-03-11typoHenning Brauer
2004-03-02show rib A.B.C.D and show rib A.B.C.D/N [all] support. Now the most importantClaudio Jeker
show commands are available. OK henning@
2004-02-26Implement "show rib" and "show rib <astype> <AS>" commands to dump theClaudio Jeker
RIB. OK henning@
2004-01-29KNFHenning Brauer
2004-01-21new parser.Henning Brauer
completely table driven and not wired into the action code like the previous parser... i wanted to do this for some time, and now it was just due. ok claudio@