summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
AgeCommit message (Collapse)Author
2004-02-21keep O_NONBLOCK after teh tcp sessions are established, claudio okHenning Brauer
2004-02-19Add support for basic filters. Nothing optimized and it has some issues butClaudio Jeker
this is a huge step forward. OK henning@
2004-02-19Make the code more portable. Add some missing header files and make the useClaudio Jeker
of the queue(3) makros more portable. OK henning@ some time ago.
2004-02-19Doh. Copy pasto. The if is always false and bogus.Claudio Jeker
2004-02-18Do aspath loop detecion for outgoing messages too, but this time with theClaudio Jeker
remote peer as. OK henning@
2004-02-18Correctly handle parse errors in aspath and prefixes. Also do input aspathClaudio Jeker
loop detection. OK henning@
2004-02-18Bring the path attribute parsing on big step closer to the RFC.Claudio Jeker
Check that evry attribut is only allowed once and ensure that the mandatory attributes are present. no objections henning@
2004-02-18Fix a nasty memory leak. OK henning@Claudio Jeker
2004-02-18Check for optional path attributes error. This kills some XXX in the code.Claudio Jeker
OK henning@
2004-02-18fix thinko in the revents & (POLLIN|POLLOUT) caseHenning Brauer
2004-02-17improve logging on connection open failHenning Brauer
2004-02-17init wbuf.sock too in init_peer()Henning Brauer
2004-02-17little easierHenning Brauer
2004-02-17bit better err msgs after buf_close (which can't fail anyway actually)Henning Brauer
2004-02-17check for EAGAIN after readHenning Brauer
2004-02-17Somehow size needs some time to settle. The direct inline call of attr_errorClaudio Jeker
caused troubles on my test machines which manifested in garbage size values. OK henning@
2004-02-17missing bzero() of the iovecHenning Brauer
2004-02-17two more returns; open msg counter might have gotten increased too muchHenning Brauer
2004-02-17On write error return and do not try to make a read. OK henning@Claudio Jeker
2004-02-17Make gcc on sparc happy. OK henning@Claudio Jeker
2004-02-17init len for getsockname and getpeername, found and ok claudioHenning Brauer
2004-02-17Make sure that we add the new prefix to the prefix list or bad things willClaudio Jeker
happen. OK henning@
2004-02-16KNFHenning Brauer
2004-02-16add scope_id for v6 to struct bgpd_addrHenning Brauer
ok itojun, grumbling ok claudio
2004-02-16Extend imsg API so that messages can be composed on the fly. In the RDE itClaudio Jeker
happens often, that imsg consists of multiple objects. OK henning@
2004-02-16Basic aspath match function needed for filters and the "show rib" bgpctlClaudio Jeker
command. OK henning@
2004-02-16superfluous tabsClaudio Jeker
2004-02-16Add basic functions to print aspath in human readable format. OK henning@Claudio Jeker
2004-02-16Make the path attribute handling more RFC conformant. Also move theClaudio Jeker
parser to rde_attr.c where it belongs. Still missing: better aspath loop detection (should be done afterwards) and some basic error checking for optional attributes. OK henning@
2004-02-10enforce config file secrecy (correct owner, no rights for group/world)Henning Brauer
help and ok theo
2004-02-09print networks tooHenning Brauer
2004-02-09drain the list fluffierHenning Brauer
2004-02-09replace a bunch of u_long by u_int32_tHenning Brauer
2004-02-09make max_prefix an u_int32_t instead of an u_long and change itsHenning Brauer
meaning as in 0 means no limit insytead of setting it to ULONG_MAX for no limit
2004-02-09print more fluffHenning Brauer
2004-02-09move printing the config to where it belongsHenning Brauer
2004-02-08factor out functions to print the configuration (rules only for now)Henning Brauer
will become more and needed by bgpctl too
2004-02-07it's about time to document tcp md5sig ...Henning Brauer
jmc help and ok
2004-02-07send filter rules to the RDE on reloads, help & ok claudioHenning Brauer
2004-02-07when connected routes show up at runtime we have to set ifindex in struct kifHenning Brauer
2004-02-07houps, fetchtable() had the default route special cased... bad.Henning Brauer
sin_len == 0 here too.
2004-02-07the sockaddr holding the netmask and advertised by rtm_addrs mightHenning Brauer
mave sa_len == 0 to indicate a mask of /0
2004-02-07sin_family in the sockaddr_n representing the netmask we sniffed on theHenning Brauer
routing socket is meaningless. so we're better off not checking it.
2004-02-06use a struct bgpd_addr for the address token instead of a in_addr, claudio okHenning Brauer
2004-02-06initial cut at the filtering language.Henning Brauer
structs etc to describe a rule, filter rule list management parser groks filter defs now. claudio ok, discussion & help also jakob theo
2004-02-05allocate curpeer little earlier.Henning Brauer
there's a rather obscure error path where teh later allocation causes trouble, claudio ok
2004-02-05error message tuningHenning Brauer
more power!
2004-02-05introduce group IDs. will be needed for filtering (or rather, ease thingsHenning Brauer
there) just assign them from the neighbor ID pool - fortunately, that is rather simple, we just have to make sure that all members of the group and (later) all filter rules pointing to the group agree on the ID, but it does not need to stay the same across config reloads. ok claudio@
2004-02-05Emphasise 'stderr'.Ryan Thomas McBride
ok henning@
2004-02-04Move BGP path attribute handling functions in a own file. henning@ conceptual okClaudio Jeker