summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.c
AgeCommit message (Collapse)Author
2004-04-25Remove the no longer needed configure stuff in RDE. The peer list needs noClaudio Jeker
longer to be synced between parent, SE and RDE. OK henning@
2004-04-25add "neighbor cloning", allowing you to specify a prefix and prefixlengthHenning Brauer
instead of the neighbor's IP address. WHen a connection comes in matching that mask we clone the neighbor spec. IPv6 match code by itojun, rde feeding by claudio, ok claudio
2004-04-25&d and %d have different meanings in format strings, yeahHenning Brauer
2004-03-20comment spelling fixes; ok henning@David Krause
2004-03-15properly check chdir success after chroot() and tweak err msgs a little,Henning Brauer
claudio ok
2004-03-12tweak err reportingHenning Brauer
2004-03-12not debugging any moreHenning Brauer
2004-03-11KNFHenning Brauer
2004-03-11Shutdown the RDE cleanly on exit. Plug some memleaks. OK henning@Claudio Jeker
2004-03-10when we exit try to write out what is left in the msg buffers for the imsgHenning Brauer
pipes and clear buffers afterwards
2004-03-05Plug some memory leaks in rde. Based on a patch by Patrick Latifi.Claudio Jeker
Added attr_move() so that we can copy the attribute before calling the filter. path_update() will now use the passed attribute so it can't be simply reused. OK henning@
2004-03-02Framework for rib lookups by prefix. OK henning@Claudio Jeker
2004-03-01Make it possible to diable the decision process. This is a feature only usefulClaudio Jeker
for route-collectors. OK henning@
2004-02-27remove unneded peer pointer in struct prefix and change a in_addr_t toClaudio Jeker
struct in_addr. OK henning@
2004-02-27Cleanup no functional changes. OK henning@Claudio Jeker
2004-02-26show rib infrastructure. At least full dumps and per as dumps. Per prefixClaudio Jeker
dump need some more work. OK henning@
2004-02-26Implement "enforce neighbor-as yes|no" which is by default on for ebgpClaudio Jeker
neighbors. While doing that check also that the nexthop is valid (not class D or E and not in 127/8 range). Kill some TODO and XXX and rename the british neighbour to neighbor as used everywhere else. OK henning@
2004-02-26Add per netwok definition filter sets. So you can now useClaudio Jeker
network 10.0.0.0/8 set localpref 100 OK henning@
2004-02-25Rewrite some parts of the mrt dump handling. It is no longer possible toClaudio Jeker
dump the filtered updates but therefore it is now possible to dump per neighbor and also to dump the outgoing messages. OK henning@
2004-02-24Enhance filters. prefixlen knows now 8-24 and 8><24. It is possible to useClaudio Jeker
prefix 10.0.0.0/8 prefixlen >= 8 and set localpref 100 can be set on a per neighbor basis. OK henning@
2004-02-23I was hunting this bug for quite some time. Don't use a value you need laterClaudio Jeker
as counter. This fixes the bad nlri prefix errors I got. OK henning@
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-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-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-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-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-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-07send filter rules to the RDE on reloads, help & ok claudioHenning Brauer
2004-02-02spacesTheo de Raadt
2004-02-02Fix bug in the decision process. The decision process is unable to directlyClaudio Jeker
detect changes of the active prefix. This bug is only triggered when a nexthop changes state. While doing that clarify prefix_move a bit. OK henning@
2004-02-02Seal a memory leak and fix a format string, conf->as is unsigned.Claudio Jeker
OK henning@
2004-01-28catch SIGINT here as well so we can properly shut down if ^C'ed in debug modeHenning Brauer
2004-01-27move strict kroute from in_addr_t for nexthop and prefix to struct in_addrHenning Brauer
ok claudio
2004-01-27use a struct bgpd_addr instead of sockaddr_in for peer_config->local_addr andHenning Brauer
->remote_addr for easier multiprotocol support ok claudio@
2004-01-22provide a log_debug and use it in rde.c.Henning Brauer
with this, logit() can be a private function. we don't need to include syslog.h in bgpd.h any more; log.c and parse.y who need it include it directly now.
2004-01-22use log_peer_warnx() now that we can, claudio agreesHenning Brauer
2004-01-22use log_warnx and log_info. reclassify a few messages in the process and fixHenning Brauer
a few messages. ok claudio@
2004-01-17Make it possible to announce own networks. In the RDE these prefixes areClaudio Jeker
attached to a pseudo peer and inserted like all other prefixes into the RIB. OK henning@
2004-01-13Implement a max-prefix and a announce none | self | all neighbor statement.Claudio Jeker
The first limits the number of sent prefixes per peer the latter controls which prefix we do annouce to the neighbor. Another looks good from henning@
2004-01-13Better update error handling. Ensure that the session goes down andClaudio Jeker
ignore all queued updates after an error. Looks good henning@
2004-01-13Dump and send RIB to the neighbor if his session is comming up.Claudio Jeker
Now bgpctl neighbor <IP> up does work as expected. Looks good from henning@
2004-01-11KNFHenning Brauer
2004-01-11This comment is not true. We decided to use a separate struct kroute6Claudio Jeker
for IPv6.
2004-01-11remove obsolete commentHenning Brauer
2004-01-11Bad sizeof slipped in while resolving a conflict. OK henning@Claudio Jeker
2004-01-11Move all struct in_addr to either struct bgpd_addr or in_addr_t whicheverClaudio Jeker
is more appropriate. The rde uses now in most cases struct bgpd_addr. OK henning@
2004-01-11in the nexthop imsgs use struct bgpd_addr for the data part instead ofHenning Brauer
in_addr_t ok claudio@