summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd
AgeCommit message (Collapse)Author
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
2008-03-15Repair more msg_controllen dealing with structures or arrays ofTheo de Raadt
descriptors; ok hshoexer, also looked at by kettenis and henning
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
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-24Make the packet buffer u_int8_t * everywhere. This is binary data and notClaudio Jeker
a string.
2007-10-24The metric is a 8bit value ranging from 1 to INFINITY (defined as a whoppingClaudio Jeker
16). So use u_int8_t everywhere.
2007-10-24An u_int8_t is enough as prefixlen. Another lint warning gone.Claudio Jeker
2007-10-24Document -D. Stolen from bgpd.8Claudio Jeker
2007-10-24Add the 5 needed lines to support -D makro=value option. Another surprisingClaudio Jeker
finding by lint.
2007-10-24Use an ssize_t instead of int like in all other imsg handlers. Hint by lintClaudio Jeker
2007-10-24The index should be unsigned int -- another lint findingClaudio Jeker
2007-10-24ctl_rt flags should be u_int16_t -- noticed by lintClaudio Jeker
2007-10-24Garbage collect unused stuff found by lint.Claudio Jeker
2007-10-24Sync a bit more with ospfd. Do not fatal if one of the pipes is closed,Claudio Jeker
instead do a "nice" shutdown. Ignore SIGHUP in the childs even though we have no reload support (yet). Remove some redundant code and clean up some types.
2007-10-24Don't use inet_ntoa() twice in a printf like function. So instead ofClaudio Jeker
using inet_ntoa() on the netmask use mask2prefixlen().
2007-10-20Sync parse.y with recent enhancements in hoststated.Pierre-Yves Ritschard
Fix behavior when running -n. henning@
2007-10-18spacingTheo de Raadt
2007-10-18Massive cleanup in the authentication code. the simple auth_key and the cryptClaudio Jeker
keys are not strings so a) use u_int8_t instead of char and b) uses memcpy to copy the full MAX_SIMPLE_AUTH_LEN resp. MD5_DIGEST_LENGTH bytes around. The parser needs some special code to ensure that the string is not to long and if it is shorter then the buffer the rest needs to be zero padded. Avoid to use strncpy() instead use a bzero(); memcpy() combo. with and OK deraadt@
2007-10-18Add missing bits for auth crypt and cleanup a bit. OK deraadt@Claudio Jeker
2007-10-17wrong type for digest; ok claudioTheo de Raadt
2007-10-17Add missing RTM_VERSION checks.Claudio Jeker
2007-10-17Remove redundant code.Claudio Jeker
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.
2007-10-11next step in the yylex unification: handle quoted strings in a nicer fashionTheo de Raadt
as found in hoststated, and make all the code diff as clean as possible. a few issues remain mostly surrounding include support, which will likely be added to more of the grammers soon. ok norby pyr, others
2007-09-11macro argument unused, using local instead; spotted by mpfTheo de Raadt
2007-09-11extend lex to spot numbers in the stream, without impacting the parsingTheo de Raadt
of ip addresses and such. this change is being pushed into all the pfctl derived parsers, starting with the easy ones; ok claudio michele
2007-09-11More baudrate fixes. Again don't forget to initialize the iface->baudrate.Claudio Jeker
2007-09-11baudrate, two non-obvious ones marked for micheleHenning Brauer
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-27Modified manpage to reflect claudio's changes about 224.0.0.9 route.Michele Marchetto
Synched with ospfd syntax. OK claudio@ norby@
2007-04-27Ripd needs a valid route for 224.0.0.9 to work. Instead of forcing users toClaudio Jeker
set multicast_router=YES we inject a 224.0.0.9/32 route into the kernel and remove the route on exit if the insert was successful. With this ripd works out of the box. OK michele@ norby@
2007-04-19Use vectorized writes to send routing messages into the kernel instead ofClaudio Jeker
using a static message structure. Similar diffs went into bgpd and ospfd.
2007-04-09Improve the handling of "counting to infinity" mechanism and add an heuristicMichele Marchetto
higly recommended in the rfc. tested by me and OK claudio@
2007-03-31Some code cleanups. Added one lint command, removed one unused function andMichele Marchetto
some other cosmetics.
2007-03-27Remove unused parameter in nbr_newMichele Marchetto
2007-03-19Doh! If we support "redistribute rtlabel" we should actually track theClaudio Jeker
routing labels in ripd's kroute code. Just steal the code from ospfd which does it right. OK michele@
2007-03-19do not signal "connection closed" upstream on EINTR/EAGAIN, from bgpd et alHenning Brauer
2007-03-13Same problem as in ospfd's kroute.c don't check rtm_tableid without verifyingClaudio Jeker
that rtm_type is one of RTM_ADD, RTM_CHANGE or RTM_DELETE.
2007-01-24Ingore SIGPIPE in the parent and rde as well. This is needed to correctlyClaudio Jeker
report crashes. Discussed with norby@
2007-01-23add timeout for failed nbr structuresMichele Marchetto
OK claudio@ henning@