summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/parse.y
AgeCommit message (Collapse)Author
2005-04-17and don't try to free a null set eitherHenning Brauer
2005-04-17fix null pointer deref on filter rules without set partHenning Brauer
problem reported by "Alexey E. Suslikov" <cruel@texnika.com.ua>
2005-04-13filter_set cleanup. Plug some memleaks and fix an obvious bug in theClaudio Jeker
network case. OK henning@
2005-04-12Introduce a per prefix weight. The weight is used to tip prefixes with equalClaudio Jeker
long AS pathes in one or the other direction. It weights a prefix at a very late stage in the decision process. This is a nice bgpd feature to traffic engineer networks where most AS pathes are equally long. OK henning@
2005-04-12Fix some yyerror messages. Ja ja, INT_MAX is to small... OK henning@Claudio Jeker
2005-03-29walk & free network and filter lists after parse errorsHenning Brauer
ok claudio theo
2005-03-28walk & free peer_l after failed config parsing attemptsHenning Brauer
2005-03-23Move the neighbor checking code from merge_config() to neighbor_consistent()Claudio Jeker
where it belongs. OK henning@
2005-03-16don't try to merge the freshly parsed config into the running one ifHenning Brauer
we had parser failures... debugging session with claudio and jason ackley ok claudio norby deraadt
2005-03-14Allow to modify the metrics in a relative way by prepending the number withClaudio Jeker
a '+' or '-'. e.g. set localpref +20. This is another gem from the FOSDEM lying around on my HD gathering dust. OK henning@
2005-03-13s/to many/too many/, from jmcHenning Brauer
2005-03-11Finally commit the transparent-as and nexthop no-modify stuff I wrote on theClaudio Jeker
way to FOSDEM. With transparent-as set to ye bgpd will not prepend his own AS for sent updates. NB the neighbor needs to set "enforce neighbor-as no" or it will not like the received AS paths. With set nexthop no-modify bgpd will change the nexthop as done normaly. OK henning@ man page update with help of jmc@
2004-12-23KNFHenning Brauer
2004-11-23Switch from a single filter_set to a linked list of sets. With this changeClaudio Jeker
it is possible to specify multiple communities. This is also the first step to better bgpd filters. OK henning@
2004-11-19For consistency reasons rename struct as_filter to struct filter_as.Claudio Jeker
OK henning@
2004-11-19Make "set network 127.0.0.1" work and use = instead of |= for theClaudio Jeker
blackhole/reject case as $$ is not zeroed. This caused funny results in merge_filterset(). OK henning@
2004-11-18add an instance of struct capabilities to peer_conf, and inheritHenning Brauer
peer->capa.ann from this
2004-11-11New config statement "rde route-age [evaluate|ignore]". If set to evaluateClaudio Jeker
the best path selection will not only be based on the path attributes but also on the age of the prefix. This is an extension to the RFC. The default is ignore but previously it was implicitly set to evaluate. OK henning@ man page OK jaredy@ jmc@
2004-11-05memleaks in error pathes, again awesome work from Patrick LatifiHenning Brauer
2004-11-04(try to) open the config file earlier, makes the error handling easier inHenning Brauer
case we cannot. in fact there was one missing free(), thus this diff plugs a little memory hole (without real-world relevance I guess). From Patrick Latifi, thanks!
2004-10-19allow neighbor definitions to depend on interface state.Henning Brauer
with this, if a neighbor is configured as dependent on carp0 for example, the neighbor will remain in state IDLE as long as carp0 is not master. once carp0 becomes master the session(s) depending on it immediately go to CONNECT (or ACTIVE, if they're configured passive), reducing failover time. claudio ok, with some input from ryan as well
2004-09-28Add prepend-neighbor feature. Prepend the remote-as n times similar toClaudio Jeker
prepend-self. Only for incomming UPDATEs. OK henning@
2004-08-24don't do the pftable_exists() check if we are running -n, needs rootHenning Brauer
2004-08-24correctly inherit conf->opts from xconf->opts in parse_config(),Henning Brauer
foudn by claudio
2004-08-24back out rev. 1.136. I commited that unintentionally and it does not workClaudio Jeker
without other nastier changes in parse.y.
2004-08-20Grrr. copy paste error. Dump MED and not local-pref. OK henning@Claudio Jeker
2004-08-20foobar-AS -> foobar-as as already done in some places. mIXeD cASe keywordsClaudio Jeker
are not fluffy. OK henning@
2004-08-17Merge set constructs in neighbor statements. This fixes a common problem:Claudio Jeker
previous sets were cleared by the last one. OK henning@
2004-08-13Fix minor issues with IPv6 dumps and add a function for dumping the RIB tableClaudio Jeker
protocol independent. This new dump format is not (yet) supported by the mrtd route_btoa tool. OK henning@
2004-08-10switch nexthop in struct filter_set form struct in_addr to struct bgpd_addrClaudio Jeker
OK henning@
2004-08-05tab at EOLClaudio Jeker
2004-08-03deny hilarious prepends. OK henning@Claudio Jeker
2004-08-02Fix a possible mem leak and add a missing yyerror(). OK henning@Claudio Jeker
2004-07-30Add new announce type "default-route" which will only announce the defaultClaudio Jeker
route to the specified neighbor. Idea and OK henning@
2004-07-28allow "set metric" as synonym for "set med", from discussion with & ok claudioHenning Brauer
2004-07-28allow prefix lists inside prefix listsHenning Brauer
2004-07-28allow AS lists inside AS listsHenning Brauer
2004-07-28prevent the filter elements from beeing given more than onceHenning Brauer
2004-07-28add list expansion for AS in filter rulesHenning Brauer
actually, it's list expansion on steroids, this works: deny from any { source-AS { 3320 852 } AS { 4589 174 } }
2004-07-28rework the filter_match production and everything below - fixesHenning Brauer
a couple of bugs
2004-07-27add support for {} expansion for prefix in the filter rules, claudio okHenning Brauer
2004-07-27suport macro expansion for peer spec in filter rulesHenning Brauer
things like deny from { $peer1 $peer2 } prefix 192.168.0.0/16 are now possible.
2004-07-13fix some typosJared Yanovich
ok henning otto
2004-07-05implement "set nexthop blackhole" and "set nexthop reject"Henning Brauer
blackhole/reject routes will be entered to the kernel for matching ones. this is intended to be used with the Cymru Bogon Route Server Project (http://www.cymru.com/BGP/bogon-rs.html) and similar services, claudio ok
2004-07-03Switch mrt dumping to fd passing. This gives some speed up when extensiveClaudio Jeker
dumping is done. Acctually mrt dumps were broken because of the fd passing. The nice side effect is a much cleaner code, especially in the parent process. OK henning@
2004-06-23Support rfc 3765 which adds a new well known community NOPEER. OK henning@Claudio Jeker
2004-06-20at least somewhat consistently name the TAILQ_ENTRYs... this confused meHenning Brauer
more than once
2004-06-08fix a few memory leaks in error paths and one in the pftable path,Henning Brauer
and simplyfy the prefix production error handling slightly from Mr. Memleak Terminator Patrick Latifi <pat@eyeo.org>, kickass!
2004-06-06rework bgpd's handling of listening sockets. instead of one for eachHenning Brauer
supported address familiy, keep a tailq of an arbitary number of them. the new struct listen_addr contains the sockaddr and the fd. this fixes quite some nasty behaviour which was a consequence of the previous model. looks right deraadt@, and discussed with claudio
2004-05-21RFC 2796 bgp route reflector support. This is very useful in conjunctionClaudio Jeker
with templates. looks good, go for it henning@