summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
AgeCommit message (Collapse)Author
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@
2007-03-12When running show commands that are restarted make sure that we eitherClaudio Jeker
have pending imsgs to send or that we reduce the poll timout to 0. This fixes hanging and extrem slow performing bgpctl show rib commands. Found by Jon Morby additional testing by Stuart Henderson. OK henning@
2007-03-06allow filtering on peer-as (leftmost AS in path), ok claudioHenning Brauer
2007-03-04document include, and commentsHenning Brauer
stolen from hostapd.conf.5
2007-02-25we do have a table with suberror codes for cease and their meaning;Henning Brauer
use it, instead of always telling "unknown suberror code X" From: Leen Besselink <leen@consolejunkie.net> if memory serves, cease didn't have suberror codes defined in the original RFC 1771 and they were added later
2007-02-25tiny typos hiding, uncovered Leen Besselink <leen@consolejunkie.net>Henning Brauer
2007-02-22KNFHenning Brauer
2007-02-22do not try to set IP_TTL on non-INET listening sockets, it's not goingHenning Brauer
to work on INET6... non-fatal error, so in pratice this just avoids a misleading error msg
2007-02-12Switch address and AS fields in mrt dump messages for incoming traffic soClaudio Jeker
that source and destination match the actual traffic flow. Found and initial diff by Adam Chappell (Adam.Chappell at interoute dot com)
2007-02-12Fix some log_warn() messages.Claudio Jeker
2007-02-07remove a log_debug() that is no longer needed.Claudio Jeker
2007-01-31Do not check that the aspath is loopfree for the peer when sending updates.Claudio Jeker
This is an undocumented optimisation that fails with the introduction of AS 23456 as placeholder for 4-byte ASN. OK henning@
2007-01-31Replace another strtol() with strtonum() making the error checking easierClaudio Jeker
to understand. This is modeled after bgpctl's parse_prefix function. OK henning@
2007-01-27use \(en for ranges e.g. 10 \(en 12Jason McIntyre
2007-01-26Finally document announce capabilities (yes|no).Claudio Jeker
With help from jmc@
2007-01-26Document which AS are designated for private use and which are reservedClaudio Jeker
for special stuff (4-byte AS support).
2007-01-26AS 65535 aka USHRT_MAX is reserved and may not be used so adapt theClaudio Jeker
range check. Found while hacking on 4-byte AS support.