OpenBSD CVS

CVS log for src/usr.sbin/dvmrpd/dvmrpd.c


[BACK] Up to [local] / src / usr.sbin / dvmrpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.27 / (download) - annotate - [select for diffs], Tue Jan 19 12:29:46 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, HEAD
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Make struct imsgev static like in the other routing daemons. With this
dvmrpd should compile with -fno-common

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 19 12:26:38 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored)

Kill dvrmpd_process and log_procnames. Unneeded abstraction for this
simple daemon.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Sep 2 16:20:34 2016 UTC (7 years, 9 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

work on making log.c similar in all daemons:

move daemon-local functions into new logmsg.c, and reduce
the (mostly whitespace) differences so that log.c's can be diffed easily.

ok claudio@

Revision 1.24 / (download) - annotate - [select for diffs], Fri Sep 2 15:38:08 2016 UTC (7 years, 9 months ago) by renato
Branch: MAIN
Changes since 1.23: +22 -58 lines
Diff to previous 1.23 (colored)

Simplify shutdown process.

On shutdown, there's no need to use kill(2) to kill the child
processes. Just closing the IPC sockets will make the children receive
an EOF, break out from the event loop and then exit.

Tha advantages of this "pipe teardown" are:
* simpler code;
* no need to pledge "proc" in the parent process;
* removal of a (hard to trigger) PID reuse race condition.

"reads good" claudio@

Revision 1.23 / (download) - annotate - [select for diffs], Fri Sep 2 15:35:34 2016 UTC (7 years, 9 months ago) by renato
Branch: MAIN
Changes since 1.22: +7 -3 lines
Diff to previous 1.22 (colored)

Close connections when msgbuf_write() returns 0.

Pulled from ospfd. Original author: claudio@

ok rzalamena@ benno@ claudio@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Sep 2 15:33:27 2016 UTC (7 years, 9 months ago) by renato
Branch: MAIN
Changes since 1.21: +19 -6 lines
Diff to previous 1.21 (colored)

Don't fatal if the imsg pipe is closed, this is often triggered in the
parent and hides the real cause of the termination.

Pulled from ospfd. Original author: claudio@

ok rzalamena@ benno@ claudio@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 2 17:51:11 2016 UTC (8 years, 4 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.20: +1 -4 lines
Diff to previous 1.20 (colored)

Remove setproctitle() for the parent process. Because rc.d(8) uses process
titles (including flags) to distinguish between daemons, this makes it
possible to manage multiple copies of a daemon using the normal infrastructure
by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@

Revision 1.20 / (download) - annotate - [select for diffs], Sat Dec 5 13:11:00 2015 UTC (8 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

EAGAIN handling for imsg_read. OK henning@ benno@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Feb 10 08:49:30 2015 UTC (9 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

More SOCK_NONBLOCK adjustments similar to the other daemons.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Feb 9 11:45:22 2015 UTC (9 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.17: +7 -11 lines
Diff to previous 1.17 (colored)

Kill another session_socket_blockmode() ... 6 or so to go.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:16 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +1 -2 lines
Diff to previous 1.16 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 12 19:22:32 2014 UTC (9 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

msgbuf_write() <= 0 for a few more daemons.

ok claudio@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Nov 26 11:32:30 2013 UTC (10 years, 6 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

deal with msgbuf_write EAGAIN, ok gilles benno

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 20 19:02:28 2011 UTC (12 years, 9 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

Decouple log_verbose() from log_init() so the verbose flag stays set with
"-v" (previously only "-vd" worked). Similar to recent ospfd commit.
ok claudio@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 8 00:36:20 2010 UTC (14 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

...and yet another typo copied from ospfd: the ev_sighup event handler
should handle SIGHUP and not SIGTERM.  SIGTERM is already handled by
ev_sigterm.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 8 00:26:51 2010 UTC (14 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Use SIGCHLD for the sigchild handler not SIGINT twice.
(This was inherited from ospfd; claudio fixed it there some time ago)
Spotted in ripd by haesbaert <at> haesbaert.org

Revision 1.11 / (download) - annotate - [select for diffs], Mon Nov 2 20:31:50 2009 UTC (14 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.10: +8 -1 lines
Diff to previous 1.10 (colored)

Yet another implementation of IMSG_CTL_LOG_VERBOSE. Similar to the one in
ripd, ospfd and friends. OK michele, henning, sthen

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 6 07:52:04 2009 UTC (14 years, 11 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.9: +50 -35 lines
Diff to previous 1.9 (colored)

make dvmrpd imsg-in-a-lib ready as well.
``put it in'' claudio@, ok eric@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jun 1 23:22:58 2009 UTC (15 years ago) by henning
Branch: MAIN
Changes since 1.8: +1 -3 lines
Diff to previous 1.8 (colored)

no endpwent

Revision 1.8 / (download) - annotate - [select for diffs], Sun May 31 20:31:35 2009 UTC (15 years ago) by jacekm
Branch: MAIN
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored)

Remove redundant imsg_event_add calls; ok claudio@

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 31 17:13:04 2009 UTC (15 years ago) by claudio
Branch: MAIN
Changes since 1.6: +9 -17 lines
Diff to previous 1.6 (colored)

More libevent callback fixes. While there make n also ssize_t as in all
other daemons.

Revision 1.6 / (download) - annotate - [select for diffs], Mon May 12 19:15:02 2008 UTC (16 years ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.5: +6 -1 lines
Diff to previous 1.5 (colored)

Error out with usage line if additional arguments are given after the
option parsing. Found out the hard way by jdixon on ifstated.

ok sobrado@, jdixon@, millert@

Revision 1.5 / (download) - annotate - [select for diffs], Sat Oct 20 13:26:50 2007 UTC (16 years, 7 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.4: +5 -3 lines
Diff to previous 1.4 (colored)

Sync parse.y with recent enhancements in hoststated.
Fix behavior when running -n.
henning@

Revision 1.4 / (download) - annotate - [select for diffs], Sat Oct 13 16:35:20 2007 UTC (16 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +1 -26 lines
Diff to previous 1.3 (colored)

in all these programs using the same pfctl-derived parse.y, re-unify the
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.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jan 24 09:57:51 2007 UTC (17 years, 4 months ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Ignore SIGPIPE in the parent and RDE as well.

ok claudio@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:07:30 2006 UTC (18 years ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)

More kroute.c cleanup and start using the routing socket to track interface
states.

Revision 1.1 / (download) - annotate - [select for diffs], Thu Jun 1 14:12:20 2006 UTC (18 years ago) by norby
Branch: MAIN

Welcome dvmrpd
started by Esben Norby some time ago by using the imsg/three process framework
of ospfd.
Right now it is not particularly useful, major parts are still missing but is
imported to allow more people to work on it.

Status:

The IGMP part is mostly complete, allowing clients to join and leave groups.
Election the IGMP querier of a network is also functional, only thing missing is
some corner cases when going from non-querier to querier.

About half of the DVMRP is functional, probes and route reports are functional.

Multicast streams can be detected and the MFC can be manipulated.
The RIB is not complete but operational.

Not yet connected to the builds.

OK claudio@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.