summaryrefslogtreecommitdiff
path: root/usr.sbin/dvmrpd
AgeCommit message (Collapse)Author
2009-07-13If there are no downstream members for a particular prefix, send a pruneMichele Marchetto
upstream. ok claudio@
2009-06-25Another kroute.c code with missing RTM_VERSION checks.Claudio Jeker
OK sthen@, henning@
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-06forgot to cvs add the filePierre-Yves Ritschard
2009-06-06make dvmrpd imsg-in-a-lib ready as well.Pierre-Yves Ritschard
``put it in'' claudio@, ok eric@
2009-06-01no endpwentHenning Brauer
2009-05-31Remove redundant imsg_event_add calls; ok claudio@Jacek Masiulaniec
2009-05-31More libevent callback fixes. While there make n also ssize_t as in allClaudio Jeker
other daemons.
2009-05-20Whitespaces cleanup.Michele Marchetto
2009-04-16Notify the rde when a neighbor goes down.Michele Marchetto
When this happens we have to rebuild the list of downstream interfaces. ok claudio@
2009-04-16Update kernel forwarding informations when a neighbor reports we areMichele Marchetto
its nexthop to a particular multicast source. ok claudio@
2009-04-14Route costs can be safely stored in one byte.Michele Marchetto
While there re order structs fields a little bit. ok claudio@
2009-04-11When inserting a new route add as downstream interfaces just the ones withMichele Marchetto
downstream neighbors or group members. ok claudio@
2009-04-11Show debug informations when a route is added and when a downstream routerMichele Marchetto
is added/deleted. Fix endianess issue in rt_match_origin(). ok claudio@
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-14Initial support for pruning. When every single interface is removed from theMichele Marchetto
downstream list for a particular source send a prune to the upstream router. input and ok claudio@
2009-03-07Get rid of rde_nbr structure as it is no more needed in RDE to makeMichele Marchetto
routing decisions. ok claudio@
2009-03-06Make RDE aware of multicast group members per interface. This is needed toMichele Marchetto
make unicast routing decisions. ok claudio@
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@
2009-02-03Correctly update kernel and mfc when change in routing table happens.Michele Marchetto
ok norby@
2009-01-27Get rid of the 24h timer as it useless here.Michele Marchetto
While there fix minor bugs. ok norby@
2009-01-25Add missing evtimer_set on route hold down timer.Michele Marchetto
ok norby@
2009-01-24Fix an evil typo.Michele Marchetto
ok norby@
2009-01-20revert earlier commit that broke the treeTodd T. Fries
2009-01-19Cleanup the functions related to the election of the designatedMichele Marchetto
forwarder. ok norby@
2009-01-19When inserting a new route into the kernel set asMichele Marchetto
downstream interfaces the ones with neighbors or group members. ok norby@
2008-12-07Kill src_node structure. It is mostly redundant with rt_node andMichele Marchetto
adds unneeded complexity. Move any stuff to rt_node structure.
2008-12-02Initial support for neighbor expiry.Michele Marchetto
When a nbr goes down delete it from the lists of downstream dependent neighbors. OK norby@
2008-11-24Introduce support for route hold down.Michele Marchetto
When a route is deleted we must continue advertising it with a metric of infinity to avoid routing loops. OK norby@
2008-11-21Introduce support for flash updates.Michele Marchetto
They spread routing changes immediately as they happen avoiding wait until the next report interval. OK norby@
2008-10-21Code cleanup. No functional change.Michele Marchetto
OK norby@
2008-10-17bring in findeol() fix from pfctlHenning Brauer
2008-10-03Unify code between the various flavors of imsg buffer.c.Eric Faurot
Use unsigned int for msg_iovlen. ok henning@ claudio@
2008-07-02Prevent dvmrpd from using illegal ifindex's.Esben Norby
Report and fix from Matthew Dempsky.
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-04-28tweak previous;Jason McIntyre
2008-04-28Improve the dvmrpd(8) manpage.Esben Norby
2008-02-27Unbreak parser by initializing topfile correctly.Marco Pfatschbacher
I got fooled by patch(1). Sorry.
2008-02-26Have popfile() also close the main config file,Marco Pfatschbacher
but only do the final popfile call after yyparse() is done. This also fixes config reload on SIGHUP for some daemons. Spotted by otto@. OK deraadt@
2008-01-31use a hyphen for "interface-specific" as a compound term. this isJason McIntyre
not a hard and fast rule (actually it's a form i abuse) but hostname.if.5 currently uses two conflicting forms and this keeps it consistent;
2008-01-31do not leak confd on malloc failure in control_accept()Henning Brauer
found by Igor Zinovik <zinovik@cs.karelia.ru>
2007-11-12Remove space/tab compression function from lgetc() and replaceMarco Pfatschbacher
it with a simple filter in the yylex() loop. The compression in lgetc() didn't happen for quoted strings, thus creating a regression when tabs were used in variables. Some testing by todd@ and pyr@ OK deraadt@
2007-10-20Sync parse.y with recent enhancements in hoststated.Pierre-Yves Ritschard
Fix behavior when running -n. henning@
2007-10-16Allow '=' to end a number in all lexers.Marco Pfatschbacher
Requested and OK deraadt@
2007-10-16in the lex... even inside quotes, a \ followed by space or tab shouldTheo de Raadt
expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). pointed out by mpf, discussed with pyr
2007-10-13in all these programs using the same pfctl-derived parse.y, re-unify theTheo de Raadt
yylex implementation and the code which interacts with yylex. this also brings the future potential for include support to all of the parsers. in the future please do not silly modifications to one of these files without checking if you are de-unifying the code. checked by developers in all these areas.