summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
AgeCommit message (Collapse)Author
2007-11-27Prefixes or actually pathes that would cause a rooting loops should not beClaudio Jeker
dropped when parsed but instead be added to the RIB marked as not eligible. So the decision process does not pick them up as a valid route. Tested and some ideas by Tony Sarendal (tony (at) polarcap (dot) org)
2007-11-24Another missing RTM_VERSION check. This will remove the RB_INSERT warningsClaudio Jeker
seen on startup.
2007-11-24some spelling fixes from Martynas VenckusJason McIntyre
2007-11-22add "demote", was missing. noticed by camield@Henning Brauer
2007-11-12Remove space/tab compression function from lgetc() and replaceMarco Pfatschbacher
it with a simple filter in the yylex() loop. The compression in lgetc() didn't happen for quoted strings, thus creating a regression when tabs were used in variables. Some testing by todd@ and pyr@ OK deraadt@
2007-10-21Being able to set the decision weight of prefixes is a nice feature, butMichael Knudsen
when it's not really documented in what way it influences the decision process, people like myself will screw it up and assume that it gets added to the prefix path lenth, and thus that smaller weight wins. .. which is not the case. Document the actual behaviour. ok claudio, the general change agreed by henning. proofraed by jmc.
2007-10-20ntpd and bgpd's turn to behave like the others.Pierre-Yves Ritschard
ok henning@
2007-10-16Allow '=' to end a number in all lexers.Marco Pfatschbacher
Requested and OK deraadt@
2007-10-16in the lex... even inside quotes, a \ followed by space or tab shouldTheo de Raadt
expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). pointed out by mpf, discussed with pyr
2007-10-13in all these programs using the same pfctl-derived parse.y, re-unify theTheo de Raadt
yylex implementation and the code which interacts with yylex. this also brings the future potential for include support to all of the parsers. in the future please do not silly modifications to one of these files without checking if you are de-unifying the code. checked by developers in all these areas.
2007-10-11next step in the yylex unification: handle quoted strings in a nicer fashionTheo de Raadt
as found in hoststated, and make all the code diff as clean as possible. a few issues remain mostly surrounding include support, which will likely be added to more of the grammers soon. ok norby pyr, others
2007-10-04when inserting blackhole or reject routes, set the gateway address toHenning Brauer
127.0.0.1 / ::1 unconditioally, since RTF_BLACKHOLE/REJECT are not actually checked in the forwarding path and the gw doesn't matter otherwise. makes them work.. found teh hard way by me. claudio ok
2007-09-16log_fmt_peer() does not use a static buffer so it is necessary to free theClaudio Jeker
string that it returned later. rde_update_log() did not do that. Memory leak found and diff provided by Mike Belopuhov.
2007-09-13Move parser to use NUMBER as all other parse.y do know. A bit tricky becauseClaudio Jeker
all the relative metrics need some special handling. OK henning@ deraadt@
2007-09-11baudrate u_long -> u_int64_tHenning Brauer
2007-06-19Ignore SIGHUP in bgpd's children to allow the use of pkill -1 bgpd forPierre-Yves Ritschard
reloading. ``yeah that is good'' henning@
2007-06-01Remove a stupid wrapper function that does nothing more then calling anotherClaudio Jeker
function with the same arguments.
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-31Init community in get_rule() to COMMUNITY_UNSET. get_rule() is called whenClaudio Jeker
set is used inside neighbor or group statements and the result was that these rules no longer machted everything. Problem found by Jon Morby. Please commit henning@
2007-05-31Correctly encode ATTR_NEW_AGGREGATOR. The new aggregator is the one thatClaudio Jeker
bgpd uses internaly so we can just dump that one out. Found by Stuart Henderson, OK henning@
2007-05-31Even so some IX in germany likes to abuse 0 as AS community number we shouldClaudio Jeker
not allow anybody to use 65535. That one is reserved for well known communities. Add in that check again.
2007-05-30mrtd.net is no longer, pruneMathieu Sauve-Frankel
ok claudio@
2007-05-29Correctly fill the MP reach and unreach update messages. Until nowClaudio Jeker
short updateds included a dummy ::/0 route and the withdraws were totaly wrong because the AFI/SAFI header was missing. put it in henning@
2007-05-29Correctly encode the End-of-RIB marker capability. It is just 2 bytes notClaudio Jeker
4. OK henning@
2007-05-28allow matching on communities using 0 in the AS part, that is in use.Henning Brauer
that unfortunately means we cannot use 0 for "unset". ok claudio
2007-05-22Only try to merge a AS_SEQUENCE if there is a difference between the 4-byteClaudio Jeker
AS path and the 2-byte version. If both pathes have the same length don't try to merge them instead use the new path. Issue reported by Jon Morby and further analysed by Stuart Henderson. Tested by Stuart Henderson.
2007-05-15draft-ietf-idr-restart -> RFC 4724 and bump draft-ietf-idr-as4bytes toClaudio Jeker
version 13.
2007-05-15Graceful restart is no longer a draft so point it to the right RFC 4724.Claudio Jeker
Additionally our as4byte support is based on draft-ietf-idr-as4bytes-13.
2007-05-15printconf didn't handle the 'down' flag for peersHenning Brauer
From: Stuart Henderson <stu@spacehopper.org>
2007-05-11Various spelling fixes from Stuart Henderson.Claudio Jeker
2007-04-30Better error messages.Claudio Jeker
2007-04-30Fix a bad check in aspath_inflate() -- compare with the correct loop value.Claudio Jeker
2007-04-26put RFC 3765 in the right place;Jason McIntyre
2007-04-26bgpd supports RFC 2796 and 3682 so mention them with all the others.Claudio Jeker
2007-04-24Try to document the new 4-byte AS numbers without being to invasive.Claudio Jeker
"people will complain if it's unclear" jmc@
2007-04-24Add draft-ietf-idr-as4bytes-13 to the see also list.Claudio Jeker
2007-04-23Use correct function name in log_warn().Claudio Jeker
2007-04-23Make bgpd 4-byte AS compatible. All internal representations of AS numbersClaudio Jeker
are now 4-byte instead of the old 2-byte numbers. The only exception are communities because they can not be switched. The RDE will inflate and deflate the ASPATH and AGGREGATOR attributes on demand and create the NEW_ASPATH and NEW_AGGREGATOR field whenever needed. Both old and new stile sessions are supported and can be mixed. Currently new stile sessions with the 4-byte AS number capability turned on are only enabled if one of the AS numbers involved is a 4-byte one. This is based on an initial diff by Geoff Huston gih (at) apnic (dot) net Cleanup, testing and bug-fixes by myself (via AS 3.10). Currently mrt table dumps are producing incompatible output this will be fixed afterwards -- this diff is already big enough. "get it in if you think it is ready" henning@
2007-04-19Use vectorized writes to send routing messages into the kernel instead ofClaudio Jeker
using a static message structure. This is more flexible and needed if multipath comes into play. looks good henning@
2007-04-17Make "network inet connected" work again. inet and inet6 became keywordsClaudio Jeker
some time ago. OK henning@
2007-04-06Count the updates and withdraws for additional statisic gathering.Claudio Jeker
Discussed with henning@
2007-04-02Typo.Claudio Jeker
2007-03-29Document the new inet and inet6 filter parameters. OK henning@Claudio Jeker
2007-03-29Until now prefixlen defaulted to AF_INET if it was used without a prefix.Claudio Jeker
This makes prefixlen filtering for AF_INET6 unnecessary complex. From now on if prefixlen is used alone the address family needs to be specified beforehands via the new inet or inet6 keywords. Remove an old check so that it is finally possible to filter IPv6 prefixes. OK henning@
2007-03-28add IMSG_CTL_SHOW_RIB_COMMUNITY, rib by given communityHenning Brauer
mostly from rivo nurges <rix@estpak.ee>, ok claudio
2007-03-28IPv6 ttl setting via IPV6_HOPLIMIT no longer works. Switch toClaudio Jeker
IPV6_UNICAST_HOPS which does the same thing and does not fail. OK henning@ found by Jon Morby
2007-03-19when our red/recv/recvmsg in imsg_read gives EINTR or EAGAIN, do notHenning Brauer
signal "connection closed" upstream. spotted by Valentin Kozamernik <tin@komna.com>
2007-03-16A few more s/2858/4760/ and use RFC <number> everywhere.Claudio Jeker
2007-03-16Multiprotocol Extensions for BGP-4 is now RFC 4760Claudio Jeker
2007-03-16Update multiprotocol extension code to RFC 4760. This actually removesClaudio Jeker
a few things we actually never realy cared about. OK henning@