Commit Graph

30 Commits

Author SHA1 Message Date
Hiroki Sato
b9f70ced25 Fix a bug which could make routed(8) daemon exit by sending a special RIP
query from a remote machine, and disable accepting it by default.  This
requests a routed(8) daemon to dump routing information base for debugging
purpose.  An -i flag to enable it has been added.
2014-09-21 04:00:28 +00:00
Poul-Henning Kamp
a3e04ddcaf Add some consts, remove some unused stuff and other attempts to calm
FlexeLint down.
2009-04-05 17:33:07 +00:00
Poul-Henning Kamp
49694c6d53 Some constifications 2009-04-05 16:01:56 +00:00
Poul-Henning Kamp
f2ca6d8a90 Modernize prototypes (ie: no extern)
Make lots of stuff static.
2009-04-05 15:55:09 +00:00
Poul-Henning Kamp
6b6b828054 Convert list of remote interfaces to LIST_* macros 2009-04-05 15:06:02 +00:00
Poul-Henning Kamp
38ae65235e Use <sys/queue.h> to manage the interface list. 2009-04-05 14:01:39 +00:00
Poul-Henning Kamp
68b22388a0 Update routed to use the RFC 3678 protocol-independent multicast API. Use
IP_MULTICAST_IF with struct ip_mreqn (obtained from Linux) to tell the
stack which interface index to use for sending IPv4 datagrams.

Submitted by:	bms
Tested by:	phk
2008-07-30 11:56:15 +00:00
Bruce M Simpson
c90cea0093 Turn on RFC 1724 compliant behaviour with regards to IP_ADD_MEMBERSHIP;
routed should be able to specify multicast memberships to be added by
interface index. This should fix the unnumbered / point-to-point case
for RIPv2.

PR:		bin/51927
Requested by:	Eugene Grosbein
2004-06-16 05:08:57 +00:00
Mark Murray
4c723140a4 Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp
2004-04-09 19:58:40 +00:00
Bruce M Simpson
c39ebb1dbb Sync HEAD sources to vendor branch import of routed v2.27 from rhyolite.com.
Update <protocols/routed.h> for the MD5 changes requested in bin/35843.
Preserve local changes.

Education by:	obrien, markm, pointy-stick
PR:		bin/35843 (and doubtless others)
2004-02-25 23:45:57 +00:00
Bruce M Simpson
caa79e368e Virgin import of rhyolite.com routed v2.27 2004-02-25 23:20:22 +00:00
Warner Losh
534734ed17 Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, so
remove the unneeded +1.
2003-08-07 05:38:56 +00:00
Peter Wemm
7a6c3acc83 $Revision$ -> $FreeBSD$ (more cleanup needed here) 1999-09-05 17:49:11 +00:00
Peter Wemm
7f3dea244c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
Mark Murray
c90fe7dc24 Merge-o-matic and add a bunch of $Id's 1999-05-02 13:14:16 +00:00
Mark Murray
2c7a97817b Latest-and-greatest routed.
Includes RIPv2 and Router Discovery.

Submitted by:	Vernon Schryver <vjs@calcite.rhyolite.com>
1999-05-02 10:51:54 +00:00
Philippe Charnier
90100551e6 Spelling, add rcsid, remove unused #includes.
Convert 1000000 usec to 1 sec 0 usec.
Use provided safe malloc (rtmalloc()) instead of malloc(): exit on allocation
failure.
Correct use of .Nm
Add usage() and use errx().
1998-07-28 06:36:31 +00:00
Peter Wemm
c0ec1f37ef Revert $FreeBSD$ to $Id$ 1997-02-22 14:40:44 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Garrett Wollman
2bd2205c6c Delete redundant include of <sys/time.h> 1996-12-17 21:12:56 +00:00
Garrett Wollman
b8186907ad Merge from vendor branch. 1996-12-17 21:11:59 +00:00
Garrett Wollman
337e72d0e5 Latest routed from Vern Schryver. This is supposed to fix
Andrey's rtquery problem.

Submitted by:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1996-12-17 21:07:05 +00:00
Garrett Wollman
a30febec0e Merge from vendor branch. 1996-12-11 21:04:17 +00:00
Garrett Wollman
71965874ee New version of Vern's routed. This includes more byte-order fixes,
some MD5 fixes, better tracing, configurable redirect processing,
and a fix to split-horizon/poisoned-reverse treatment.

Submitted by:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1996-12-11 20:59:33 +00:00
Garrett Wollman
628d2ac1b0 Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
do it themselves.  (Some of these programs actually depended on this
beyond compiling the definition of struct ifinfo!)  Also fix up some
other #include messes while we're at it.
1996-12-10 17:11:53 +00:00
Garrett Wollman
52ad60210f Merge from vendor branch and use system MD5 library. 1996-11-19 20:42:43 +00:00
Garrett Wollman
c9c588ef9b Last import was botched. Fix it. 1996-11-19 20:26:54 +00:00
Garrett Wollman
d5b718b3ee Latest version of SGI routed courtesy of Vern Schryver. This version
adds the capability to use MD5 authentication as defined in the latest
documents.

Submitted by:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1996-11-19 20:23:47 +00:00
Garrett Wollman
50d2cb3ed7 Layer on FreeBSD local changes from old routed. 1996-09-16 17:04:22 +00:00
Garrett Wollman
7b6ab19dde Virgin import of new BSD/SGI routed. This update contains a number
of important bug fixes.

Obtained from:	Vernon J. Schryver <vjs@mica.denver.sgi.com>
1996-09-16 16:51:32 +00:00