summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
AgeCommit message (Collapse)Author
2004-01-05fix commentsClaudio Jeker
OK henning@
2004-01-05missing fclose()Henning Brauer
fd leak pointed out by Patrick Latifi, but it was not so easy to fix before I just killed the support for config from stdin and his fix didn't work. however, this is the 16 bytes memory leak on config reload i was hunting for some time, big thanks to Patrick!
2004-01-05correctly handle SIGCHLD.Henning Brauer
SIGCHLD does _not_ translate to "a child process went kaboom". waitpid() and check status; if the child exited or terminated log & quit ok claudio@
2004-01-05remove support for reading configuration from stdin.Henning Brauer
that really does not make sense with a daemon and probably breaks horribly on config reload
2004-01-05fix off by ones with strlcpy()Henning Brauer
memleak fixes in error paths From: Patrick Latifi <pat@eyeo.org>
2004-01-05waitpid's return is a pid_tHenning Brauer
2004-01-05allow fib couple/decouple based on an imsg received on the control socketHenning Brauer
by the SE and passed on to the main process
2004-01-05protect against trying to couple when we're already coupled to the fib,Henning Brauer
and log the coupling. same for decouple.
2004-01-05.Xr bgpctlHenning Brauer
2004-01-05include path fixes for gcc3.Marc Espie
tests otto@, okay millert@
2004-01-04cope with poll errorHenning Brauer
2004-01-04split the dispatch_imsg function into twom one per pipe.Henning Brauer
with the amount of different msgs the RDE is handling the checks wether a msg was received on the "wrong" pipe make things less clear. also remove some outdated comments
2004-01-04err, on receival of keepalives increase the keepalive counter, not the updateHenning Brauer
counter...
2004-01-04keep seperate message counters for open/update/keepalive/notificationHenning Brauer
2004-01-04-new imsg CTL_RELOADHenning Brauer
-upong receival in the SE forward to parent -make sending messages from SE to parent work for that (was not required before) -parent reacts to that just like a SIGHUP, reread config file
2004-01-04allow "show neighbor" to be limited to one specific neighborHenning Brauer
2004-01-04in the SE, keep the remote router-id in network byte order, just likeHenning Brauer
every other IP address in the RDE, transform in into host byte order upon receival
2004-01-04share statenamesHenning Brauer
2004-01-03keep track of last session up/down and last successfull readHenning Brauer
2004-01-03add message countersHenning Brauer
2004-01-03move some session specific stuff to session.h and make the few filesHenning Brauer
that need it include that
2004-01-03decouple the peer list from bgpd_config.Henning Brauer
so many parts of bgpd are not at all interested in the session specific peer structs... allows for some further cleaning
2004-01-03change imsg_read semantics so that the number of bytes read is returned.Henning Brauer
that means that the callers can (and must) coope with closed connections themselves, what is exactly the desired behaviour.
2004-01-03send an imsg as list end indicatorHenning Brauer
2004-01-03fix umask, noticed by theoHenning Brauer
2004-01-02whitespaceJun-ichiro itojun Hagino
2004-01-02SEE ALSO after FILES;Jason McIntyre
2004-01-02umask setting and unlink before bind() the unix socket, chmod and umaskHenning Brauer
restore afterwards help & ok theo
2004-01-02move the socket name #define to bgpd.h and get rid of bgpdctl*Henning Brauer
2004-01-02no, not thereTheo de Raadt
2004-01-02mark a few numbers U to please compilers; henning okTheo de Raadt
2004-01-02do not , after last element in an enumTheo de Raadt
2004-01-02no nested subdirs like this, henning did not discussTheo de Raadt
2004-01-02compile like it used toTheo de Raadt
2004-01-01add bgpdctlHenning Brauer
2004-01-01add bgpdctlHenning Brauer
right now it only connects to bgpd and prints a list of neighbors and their status; that will change.
2004-01-01prepare for bgpdctlHenning Brauer
2004-01-01listen on a AF_LOCAL socket for imsgs too.Henning Brauer
only implemented type yet is IMSG_CTL_SHOW_NEIGHBOR which sends back the struct peer for all neighbors. will be used by bgpdctl
2004-01-01typoHenning Brauer
2004-01-01now that imsg_get uses bigger buffers, one read call can put more than oneHenning Brauer
imsg into the buffer. since imsg_get by definition only returns one imsg we missed the next imsg(s) until the next poll event on the socket in question, building up a queue on that socket. didn't show up as a problem yet... factor out imsg_read, which reads into the buffer. imsg_get now entirely operates on the buffers and does not read(2) itself. make all callers cope by calling imsg_read on poll events and calling imsg_get in a loop until all imsgs are processed.
2004-01-01conf -> mconfHenning Brauer
causes a conflicht with upcoming changes
2003-12-30correctly free after buf_add/_close errs.Henning Brauer
From: Patrick Latifi <pat@eyeo.org>
2003-12-30small logic error in session_open/_keepalive/_notification (yes, the same inHenning Brauer
all three) after buf_open failure. as this does not happen normally (except for in out of memory cases) it wasn't noticed.
2003-12-30missing free()s in error cases that (now) lead to program terminationHenning Brauer
From: Patrick Latifi <pat@eyeo.org>
2003-12-30we should not access ressources in a peer strcut 2 lines after weHenning Brauer
detected a closed connection which caused an fsm call which causes a deallocation of said ressources (that was long for "missing return")
2003-12-30missing free()s; From: Patrick Latifi <pat@eyeo.org>Henning Brauer
2003-12-30no empty default: cases in switch, gcc3 complaints via espie@Henning Brauer
2003-12-30typos from davidHenning Brauer
2003-12-28typo in commentHenning Brauer
From: Dries Schellekens <gwyllion@ace.ulyssis.org>
2003-12-28redo the imsg readers to use bigger buffers and less read(2)s. should increaseHenning Brauer
performance even further. gets rif od struct imsg_readbuf; rename peer_read_buf to read_buf as that is more appropriate now.