summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd
AgeCommit message (Collapse)Author
2010-04-27imsg.h does not need sys/tree.h.Nicholas Marriott
ok eric
2010-04-07Remove XXX comment and just close received fd if calloc() fails.Nicholas Marriott
If this happens the imsg may no longer be usable as there may be queued messages, but this is a) already the case with the code now, and b) would be the case if recvmsg() fails anyway, so we can document that -1 from imsg_read() invalidates the struct imsgbuf. discussed with and ok eric
2010-02-23Fix .Oo .Xo .Oc .Xc mis-nesting by just dropping the .Xo and .Xc which,Ingo Schwarze
in these cases, is useless anyway. Found by and fixing the build with mandoc; still fine with both old and new groff. ok jmc@
2010-02-21Kill double declaration of control_imsg_relay().Michele Marchetto
From Christiano F. Haesbaert. ok claudio@
2010-02-08Use SIGCHLD for the sigchild handler not SIGINT twice.Philip Guenthe
(This was inherited from ospfd; claudio fixed it there some time ago) Spotted in ripd by haesbaert <at> haesbaert.org
2010-01-02The .Rs macro must be followed by .Re, and empty .Rs is useless anyway.Ingo Schwarze
Markup syntax error found by mandoc(1), also required to fix the mandoc build. ok jmc@ sobrado@
2010-01-02Fix comparison between the routing message's priority and RTP_RIP.Michele Marchetto
ok claudio@
2009-12-08porcesses -> processesJonathan Gray
2009-12-02log_warn() consistency.Michael Knudsen
`OK' claudio
2009-11-02Another routing daemon that gets IMSG_CTL_LOG_VERBOSE to allow toggeling ofClaudio Jeker
log_debug(). ok michele, henning, sthen
2009-10-22write UNIX-domain in a more consistent way; while here, replace aIgor Sobrado
few remaining ".Tn UNIX" macros with ".Ux" ones. pointed out by ratchov@, thanks! ok jmc@
2009-10-22use the UNIX-related macros (.At and .Ux) where appropriate.Igor Sobrado
ok jmc@
2009-09-30Bring in sync with the bgpd version of carp.c. This fixes a memory leakClaudio Jeker
in an error path.
2009-09-30carp_demote_ioctl() can handle more then +/-1 steps so there is no need toClaudio Jeker
loop in the shutdown case. OK henning@
2009-09-26Added manpage bits about rdomain support.Michele Marchetto
ok jmc@
2009-09-26Preliminary rdomain support.Michele Marchetto
ok claudio@
2009-09-26Whitespace cleanup.Michele Marchetto
2009-09-24Priorities are now handled in the kernel so:Michele Marchetto
- RTF_PROTO3 is useless - MPLS routes don't need special treatment anymore, so don't track them at all ok claudio@
2009-09-18Make kroute code routing priority aware.Michele Marchetto
ok claudio@
2009-09-15Enclose repeated buffer draining code in a new msgbuf_drain()Jacek Masiulaniec
function, which is additionally exported for use by others. It will be needed by smtpd's SSL module when the SMTP client code is changed to replace libevent's evbuffers with our msgbuf_* API. ok gilles@ henning@ guenther@ eric@
2009-08-08Make imsg_clear close and free any fds in the received fd queue as well asNicholas Marriott
freeing the msgbuf. While here also remove an unnecessary while loop. ok eric pyr
2009-07-31Reword the split horizon parameters in the configuration file.Michele Marchetto
Now the choioses are: none, simple, poisoned. Also make poisoned reverse the default behaviour. Based on a diff by Eugene Yunak, thanks. ok claudio@
2009-07-23make buf_write() behave like msgbuf_write(): send out only theEric Faurot
bytes that were filled, not the whole buffer. ok pyr@ gilles@
2009-07-07Make ripd(8) aware of MPLS routes.Michele Marchetto
ok claudio@
2009-06-08revert this change by eric@:David Gwynne
Make the imsg protocol network-safe. it might be network safe, but half the imsg based daemons on my firewalls dont run anymore.
2009-06-07Change the way fds passed over a socket are retreived on the receiving side.Eric Faurot
Currently the receiver fetches an imsg via imsg_get() and if he expects an fd, he then calls imsg_get_fd() to fetch the next fd queued on the imsgbuf from which the imsg came. This changes hides the fd queueing mechanism to the API user. When closing an imsg with an fd, the message is flagged so that the receiving end knows it must dequeue the fd in imsg_get() and return it with the imsg structure. This way there is no (less) possible screw up from imsg_get_fd() not being called directly after imsg_get() by the user. The retreived imsg is self-contained. ok pyr@, "I like that" henning@
2009-06-07Make the imsg protocol network-safe.Eric Faurot
ok pyr@
2009-06-06change the imsg header fields a bit to prepare for upcoming changes.Eric Faurot
add a flag field, use u_int32_t for pid_t and extend type to 32 bits for padding. ok pyr@
2009-06-06Get ready for including imsg.h from a lib, when it comes along.Pierre-Yves Ritschard
2009-06-06make ripctl/ripd imsg-in-a-lib ready too.Eric Faurot
ok pyr@
2009-06-05rtm->rtm_hdrlen conversionChris Cappuccio
ok claudio@, henning@
2009-06-02Same reject and blackhole route handling as in ospfd. Allow those routesClaudio Jeker
to be redistributed even though they point to 127.0.0.1. OK michele@
2009-05-31Remove redundant imsg_event_add calls; ok claudio@Jacek Masiulaniec
2009-05-31Better EV_READ and EV_WRITE handling in the libevent callbacks. Again mostlyClaudio Jeker
the same ospfd diff applied with some fuzz.
2009-03-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2009-03-31Assign the correct metric to the routes learned from the kernel while ripd isMichele Marchetto
running. Issue spotted and diff tested by Steven Surdock. ok claudio@
2009-03-27Allow the announcement of default route also via redistribute 0.0.0.0/0Michele Marchetto
and route labels. ok claudio@
2009-03-25With redistribute connected set, announce the prefix on the interfaceMichele Marchetto
with address belonging to that prefix. Don't skip it. ok claudio@
2009-03-24Change the behaviour of redistribute default.Michele Marchetto
Now a default route have to be present in the fib to be correctly advertised. Spotted and tested by Steven Surdok on ripd. ok claudio@
2009-03-04typo;Michele Marchetto
unknon -> unknown
2009-02-25Fix an invalid pointer dereference in control_close(). If control_connbyfd()Claudio Jeker
fails -- which should never happen -- the function does not return and is accession the NULL set control pointer later on. Found by Matthew Haub. OK deraadt@
2008-12-17sort;Jason McIntyre
2008-12-17Add support for demotion counter.Michele Marchetto
When interfaces go up/down the demotion counter of the specified group is decreased/increased. ok henning@
2008-11-23Fix two error messages.Michele Marchetto
2008-10-17bring in the findeol() fix from pfctl. list of affected parsers by sthenHenning Brauer
2008-08-05Do not advertise the default route with wrong metric of 0. Set it to 1Claudio Jeker
by default. Reminded to commit this brad@, OK deraadt@
2008-05-12Error out with usage line if additional arguments are given after thePierre-Yves Ritschard
option parsing. Found out the hard way by jdixon on ifstated. ok sobrado@, jdixon@, millert@
2008-05-09prio RTP_RIP for inserted routesHenning Brauer
2008-04-13Use arc4random_buf() when requesting more than a single word of outputDamien Miller
Use arc4random_uniform() when the desired random number upper bound is not a power of two ok deraadt@ millert@
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis