summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
AgeCommit message (Collapse)Author
2005-04-15Fix memory leak in case aspath_snprint() returns an error (-1).Claudio Jeker
OK henning@
2005-04-13filter_set cleanup. Plug some memleaks and fix an obvious bug in theClaudio Jeker
network case. OK henning@
2005-04-13tweak to make this use similar format to ospfd.conf.5 and hostapd.conf.5;Jason McIntyre
2005-04-12tweaks;Jason McIntyre
ok claudio@
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-04-12set metric is an alias of set med since a long time. OK henning@Claudio Jeker
2005-04-08don't whine when we can't find interface with index 0Henning Brauer
(that is a rare corner case in that context, but still)
2005-04-07nicer outputHenning Brauer
2005-04-05magic police, Jason Ackley <jason@ackley.net>Henning Brauer
2005-03-31zap some includes we don't need, Alexander von Gernler <grunk@pestilenz.org>Henning Brauer
2005-03-30bgpd used to open listeners in advance in the parent and the SE pickedHenning Brauer
those it needed, closing all the others. this has some nasty races. so let the parent keep the list of listeners so it knows when it has to open a new one claudio ok, also tested by jason ackley
2005-03-30interface validation cleanup / fixesHenning Brauer
there's some nastiness in the interface validation. clean up by centralizing the checks in kif_validate(). claudio ok
2005-03-29explicitely check interface flags for IFF_UP in kroute_validateHenning Brauer
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-28ewps, this was not supposed to creep inHenning Brauer
2005-03-28free rules_l if the initial config file parse failsHenning Brauer
2005-03-28KNFHenning Brauer
2005-03-28better diagnostics on bind() failureHenning Brauer
2005-03-26inet_addr("127.0.0.1") -> htonl(INADDR_LOOPBACK)Claudio Jeker
Use IN_CLASSA_NET instead of hard coded 0xff000000 OK henning@
2005-03-26proper check on log type. ok henning claudioTed Unangst
2005-03-26Move the path_empty()/path_destroy() check out of the inner for-loop.Claudio Jeker
Makes the code more obvious. Idea from tedu@ OK henning@
2005-03-24soem fatal()s that should be fatalx()s, Alexander von GernlerHenning Brauer
2005-03-24fix memory leak in error paths. found with coverity prevent.Ted Unangst
ok claudio henning
2005-03-23Move the neighbor checking code from merge_config() to neighbor_consistent()Claudio Jeker
where it belongs. OK henning@
2005-03-23remove now osolete comment, from a mail exchange withHenning Brauer
Alexander von Gernler <grunk@pestilenz.org>
2005-03-23ssize_t -> size_t, from ntpd, there from Alexander von GernlerHenning Brauer
2005-03-17Fix fd passing. Bug introduced lately passed the first fd twice and an oldClaudio Jeker
bug passed a fd twice if only part of the buffers where written by sendmsg(). Lot of discussion and help deraadt@, additional testing norby@ OK deraadt@
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-15describe "depend on"Henning Brauer
you wouldn't guess how hard it was to get that right... initial diffs and lots of input from Jason Ackley and jaredy, ok claudio jaredy jmc deraadt
2005-03-15remove listener if bind() fails. no point in having a defunct listenerHenning Brauer
in the list; causes issues with upcoming changes, spotted by Jason Ackley <jason@ackley.net>, claudio ok
2005-03-15grow the receive buffer on the routing socket, pointed out by markus,Henning Brauer
ok markus claudio
2005-03-15tweaks;Jason McIntyre
ok claudio@
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-14send a kif structure describing the interface a route relies on alongHenning Brauer
with the "show nexthop" messages, claudio ok
2005-03-14when a buffer has a file descriptor to pass attached, we tried to sendHenning Brauer
out all pending buffers up to and including the one with the fd attached. the fd is sent with the data and closed after all data is sent. when this amount of data exceeds what we can get rid of with a single sendmsg() on our nonblocking sockets we might send the fd more than once, leaving unused fds around. when we see a buffer with an fd attached, send out everything up to, but EXcluding that buffer, so that in the next round a seperate message with just the one buffer and the associated fd is sent. if anything got written in that sendmsg() call consider the fd sent and close it. from a debugging session with theo hunting something else, claudio ok
2005-03-14"we notice when you plug the cable" - yeah, but we didn't notice when itHenning Brauer
was unplugged from the beginning on... correctly take interfaces' link state into account for nexthop verification in all cases. add a new function kroute_validate() that looks up the interface for a given kroute via the ifindex and check its link state. use it in all cases instead of hand-rolling the test. claudio ok
2005-03-13when fetching the initial table, inherit the ifindex regardless of af, notHenning Brauer
just for AF_LINK
2005-03-13explicitely initialize optHenning Brauer
2005-03-13s/to many/too many/, from jmcHenning Brauer
2005-03-11shutdown() directly before close() is useless, theoHenning Brauer
2005-03-11move umask() song and dance closer around the bind, being more careful about ↵Theo de Raadt
errors; ok claudio
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@
2005-03-09correctness: memmove instead of memcpy where we might have overlapsHenning Brauer
2005-02-25unlink() control socket in error path. Spotted by Theo.Claudio Jeker
2005-02-24Add two missing breaks and suddenly using filter has no strange side effects.Claudio Jeker
Sometimes it is good to look at the rib output of a test box.
2005-02-09need to send IMSG_NETWORK_DONE after sending networks and associated filterHenning Brauer
sets, otherwise local netyworks get withdrawn after config reload; misbehaviour noticed by peter.galbavy@knowtion.net, claudio ok
2005-02-07spelling fixDavid Krause
2005-02-02usage() is __deadHenning Brauer
pt out by Alexander v Gernler