summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/control.c
AgeCommit message (Collapse)Author
2005-02-25unlink() control socket in error path. Spotted by Theo.Claudio Jeker
2004-12-23allo the "bgpctl show neighbor " commands to take the neighbor descrHenning Brauer
too, claudio ok
2004-12-23allow "bgpctl neighbor" to take the peer's descr as argument as wellHenning Brauer
as its address so "bgpctl neighbor upstream1 clear" now works and you don't have to remember IPs claudio ok
2004-11-23Switch from a single filter_set to a linked list of sets. With this changeClaudio Jeker
it is possible to specify multiple communities. This is also the first step to better bgpd filters. OK henning@
2004-09-16imsg API cleanup:Henning Brauer
-kill imsg_compose_pid, imsg_compose_fdpass and imsg_create_pid -extend the original imsg_compose/_create API to take pid & fd too -make imsg_compose do imsg_create + imsg_add + imsg_close instead of duplicating the code -adjust all callers to the new API ok claudio
2004-08-24missing space in log message.Claudio Jeker
2004-08-20add IMSG_CTL_NEIGHBOR_CLEAR, takes a session down and restarts it,Henning Brauer
claudio ok
2004-08-20merge IMSG_CTL_NEIGHBOR_UP and _DOWN handling, kills some duplicate code,Henning Brauer
claudio ok
2004-08-06Forward IMSG_CTL_SHOW_NEIGHBOR messages to the rde so that we can reportClaudio Jeker
the current and max prefix count back to bgpctl. OK henning@
2004-06-20at least somewhat consistently name the TAILQ_ENTRYs... this confused meHenning Brauer
more than once
2004-06-09move to a dynamically allocated struct pollfd array.Henning Brauer
we used a ststic one with OPEN_MAX entries, which is a rather arbitary limit as OPEN_MAX is _not_ the max # of open fds we can have, but just a default for that setting. in the same move we have to allocate the peer_l array, basically there for pfd-index to peer pointers to prevent peer list scans all time, dynamiccaly to. we overallocate a little and use that reserve until we have to realloc again later to prevent reallocs for every single control connection or a single flapping peer. help & ok claudio
2004-05-21Add support for dynamic announcements. Usefule to annouce temporaryClaudio Jeker
blackhole routes or to make network announcements dependent on a external state (e.g. for carp setups) OK henning@
2004-05-08remove unused argument to control_dispatch_msg(), lintHenning Brauer
2004-04-29sock -> fd; ok henningTheo de Raadt
2004-04-25missing return; noticed by Joris Vink <amni@pandora.be> but I fixed inHenning Brauer
another way
2004-04-16use getpeerbyaddr() instead of using the v4 part of the af independentHenning Brauer
struct manually
2004-03-17remove getpeereid() call so that those who have write access to the socketHenning Brauer
(root:wheel 0640) can send queries, claudio ok
2004-03-02Framework for rib lookups by prefix. OK henning@Claudio Jeker
2004-02-29plug memory leak: when a control connection is closed we need to clearHenning Brauer
its write buffers, noticed by claudio
2004-02-29of course the control socket needs to be nonblocking as well, i could haveHenning Brauer
sworn it was... noticed by & fixed with claudio
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-02close socket on error in control_initHenning Brauer
From: Patrick Latifi <pat@eyeo.org>
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-22s/log_err/log_warn/Henning Brauer
it is like warn(3), nor err(3). so use a less confusing name.
2004-01-20fix error logging on connection attempts from !root userHenning Brauer
2004-01-17allow the interfaces as bgpd sees 'em to be queried via imsgsHenning Brauer
2004-01-11new message IMSG_CTL_SHOW_NEXTHOP: request/send lost of BGP nexthops andHenning Brauer
the result of their validity check
2004-01-09for IMSG_CTL_KROUTEs allow matching based on flags,Henning Brauer
add IMGS_CTL_KROUTE_ADDR to match the route for a given address ok claudio@
2004-01-09get us a stateful imsg relaying framework, and the first receiver,Henning Brauer
IMSG_CTL_KROUTE, to have the kroute structs forming the fib sent to a control socket. ok claudio@
2004-01-09you must not try to read(2) without checking (pfd->revents & POLLIN)Henning Brauer
you must not try to read(2) without checking (pfd->revents & POLLIN) you must not try to read(2) without checking (pfd->revents & POLLIN) [...] you must not try to read(2) without checking (pfd->revents & POLLIN)
2004-01-06two new imsg types, IMSG_CTL_NEIGHBOR_UP and _DOWN, on their receival on theHenning Brauer
control socket the given neighbor session is sent a START / STOP signal. ok claudio@
2004-01-062004Henning 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-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-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-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-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