Commit Graph

165 Commits

Author SHA1 Message Date
wiz 7919f2a9a1 Don't xref gated(8) and htable(8), which we don't have. 2001-04-03 11:16:27 +00:00
christos 4fea751ddc sync with version 2.24. Vernon says:
The most significant [fix] involves so called "remote" interfaces
configured in the kludge file to with what appear to be colliding
networks.  Edward Mascarenhas <eddiem@vihar.engr.sgi.com> found
the problem and the fix, and I think has tested it in the SGI
network.
2001-03-10 23:52:45 +00:00
itojun 7846de58b2 specify interface by using interface index (set/getsockopt with 0.0.0.0/8). 2001-01-15 13:19:12 +00:00
lukem 790602fd72 deprecate LOG_ODELAY; it's the default 2001-01-10 03:47:41 +00:00
lukem 279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
is 9979da6cbb Format string cleanups by Bill Sommerfeld. 2000-10-10 20:24:49 +00:00
ad 5b09090e8e insure -> ensure 2000-10-05 12:35:33 +00:00
thorpej c849d97e50 Pull in <md5.h> rather than defining our own MD5 structures (!). 2000-07-27 16:34:31 +00:00
thorpej ef220cfa40 Make sure IS_PASSIVE gets set on a parm's int_state when the
passive option is used in an if=xxx clause.
2000-07-21 00:22:38 +00:00
thorpej 9b5aaf80be In walk_supply(), test for IS_PASSIVE in ifp->int_state, not
ifp->int_if_flags (IFF_* bits).
2000-07-20 22:50:16 +00:00
msaitoh f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
christos 88f6fad445 Revert 1.18 -> 1.19; causes infinite loops on machines that use ppp and
do active routing.
2000-06-11 23:43:17 +00:00
christos e9769e0528 portability casts 2000-03-02 21:02:25 +00:00
christos a221b1ba72 portability casts and re-indentation of some code. 2000-03-02 21:02:01 +00:00
christos 93daf39438 make local functions static and portability casts. 2000-03-02 21:01:34 +00:00
christos 62f94a6648 typos and clarifications 2000-03-02 21:01:03 +00:00
christos 2c77d44472 protability cast. 2000-03-02 21:00:41 +00:00
christos 5c5977a292 add an unsigned cast; looks safe and innocent, but it might not be... 2000-03-02 21:00:23 +00:00
christos cce4e6d1e6 add a usec_fudge to make sure that time increases monotonically.
printf format changes.
2000-03-02 20:59:40 +00:00
christos d1c10b4cd1 add a comment on about how tracing is secured, but still keep it disabled. 2000-03-02 20:58:55 +00:00
christos 59fd2f8be8 remove the once hack; vjs says it is not necessary with the monotonic
time kludge. We'll see.
2000-03-02 20:57:42 +00:00
christos 3e1606a4b5 PR/9390: Jarkko Torppa: Routed leaks memory when route addition fails. 2000-02-11 18:39:02 +00:00
bouyer a1d8cb9593 Ignore RTM_OIFINFO messages (send by a COMPAT_14 kernel). 1999-11-19 10:46:35 +00:00
christos ebe496e30c negative ip octets don't make sense. Now we print byte swapped but the
addresses are at least recognizable without negating :-)
1999-08-19 05:12:38 +00:00
thorpej eb2854e11b Use pidfile(3). 1999-06-06 02:00:32 +00:00
christos cc2c568d66 Revert cast to (int) that caused core-dumps. 1999-03-22 10:25:23 +00:00
ross c650920100 LP64 tweaks. 1999-02-25 11:03:22 +00:00
ross 57f33ecab4 LP64 tweak in printf(3) instance 1999-02-25 10:56:47 +00:00
christos ca98b383fd Oops remove WARNS=1 1999-02-23 10:51:53 +00:00
christos 756b1291db Resolve conflicts. 1999-02-23 10:47:39 +00:00
msaitoh 73c0a4420d s/ and and / and / 1998-11-22 22:27:32 +00:00
abs 78aeeb96c6 Fix typo 'with routing loop' to 'with a routing loop' 1998-11-13 22:06:56 +00:00
christos 94b2d42842 Update to 980910 from ftp.rhyolite.com 1998-10-25 14:56:06 +00:00
christos e24d852656 Disable and log RIP_TRACEON and RIP_TRACEOFF. They are insecure. 1998-10-24 18:30:23 +00:00
lukem ab0be9be0e spell daemon correctly in the opening paragraph... 1998-10-21 13:58:32 +00:00
christos b2ae8c434d Avoid interraction between pppd and routed, by trying to discover new
interfaces every time there is a new route, irrespective of timeout period.
1998-08-26 17:50:32 +00:00
msaitoh 3181c0a112 fix a roff command bug 1998-08-18 18:03:28 +00:00
mrg 2beab49a06 - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
thorpej 6d8ef4df7c Merge the 980602 RIPv2/Router Discovery routed. Fixes floods of host routes
generated when one of the interfaces on the network does not support
broadcast (e.g. HIPPI or ATM).

From Vern Schryver <vjs@rhyolite.com>
1998-06-02 18:02:55 +00:00
kleink 39464b81bb Remove the unrecognized `-v' option from the usage information;
from Geoff C. Wing in PR bin/5521.
1998-06-02 10:48:49 +00:00
fair 3d7afc6d03 fix bad .Xr references 1998-04-29 09:49:10 +00:00
mrg da05df7daf use static int, not just static 1998-03-30 02:15:27 +00:00
mrg 6ea8e66d96 add noreturn attribute, and fix the return value of main. 1998-03-30 02:15:16 +00:00
cgd 856ca5e59c allow LDSTATIC definition to be overridden by bsd.own.mk/mk.conf 1998-03-02 21:42:02 +00:00
perry 34a98169f0 macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:54:12 +00:00
christos f526faa596 y2k fixes: use strptime... 1998-02-04 15:06:11 +00:00
mrg 9f84449ae5 add missing .Nm sections. 1997-11-11 14:39:59 +00:00
mycroft b247da14fe Use S_IS*(), not S_IF*. 1997-10-19 18:17:27 +00:00
mycroft e96e918e60 Use bsd.subdir.mk as appropriate. 1997-10-11 09:34:07 +00:00
enami 2a6493fe69 - Use .Nm "" instead of .Nm rtquery in SYNOPSIS.
- Don't use captialized wort to refer command name.
- Delete period at the end of ``SEE ALSO'' list.
- Use .Xr instead of .Em to refer routed.
1997-10-11 02:55:20 +00:00
lukem 76e13a0128 all but the first .Nm in SYNOPSIS need to be spelt out. [bin/4256] 1997-10-10 16:12:45 +00:00
mikel b6c4c4295e link rtquery against dynamic libs; from Soren S. Jorvang in PR bin/4178 1997-10-10 07:34:09 +00:00
christos e398a31c08 Fix uninitialized variable warning. 1997-09-19 16:25:49 +00:00
mrg 52ff5d8fee make these compile on the alpha after WARNS=1. 1997-09-16 08:37:01 +00:00
lukem 613a458802 If One splits a line for cosmetic reasons, One should ensure that the
preceeding line has a \ if it's part of a #define...
1997-09-16 07:29:56 +00:00
lukem 13992bec12 use memmove, memcmp, memset instead of bcopy, bcmp, bzero 1997-09-15 11:51:54 +00:00
lukem 3f50343aa8 * cleanup for WARNS=1
* deprecate register
* bcmp, bcopy, bzero, rindex -> memcmp, memmove, memset, strrchr
* correct use of .Nm
1997-09-15 10:38:11 +00:00
kleink 0505614d4e Fix formatting directives; from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>
in PR misc/3795.
1997-06-26 20:23:44 +00:00
pk 3504520bd0 Install `rtquery' in /usr/sbin. 1997-06-20 19:29:43 +00:00
perry fd9be39827 fix 3128 from SAITOH Masanobu.
this consisted of nuking a duplicated paragraph; I did it slightly
differently than suggested.
1997-03-25 19:51:21 +00:00
mouse 80c0d60f84 alternate -> alternative, per PR 2643 1997-03-08 13:47:08 +00:00
christos e7512e5a5e - resolve conflicts.
- remove md5 stuff; it is in libc.
- define MCAST_PPP_BUG, until we fix if_ppp.c
1997-02-03 22:02:51 +00:00
christos 6cf225561b New version from ftp.sgi.com:sgi/src/routed.tar.Z 1997-02-03 21:06:26 +00:00
ws ac112dcf50 Shifting by 32 on a 32-bit machine is undefined
(and in fact -1 << 32 results in -1 on e.g. x86)
1997-01-29 12:07:26 +00:00
perry b1998ea4df fix some nits from SAITOH Masanobu, pr-3149 1997-01-27 15:01:58 +00:00
mikel 8cd71f8b62 eliminate duplicate paragraph and fix typos; PR misc/3128 1997-01-23 06:34:39 +00:00
perry ea9e41ab25 fix .I which should be .Em, from SAITOH Masanobu in pr-3109 1997-01-17 05:04:09 +00:00
thorpej 575dc254e0 Remove the redundant copy of this file.
Suggested by David Carrel <carrel@ipsec.com>, PR #2872.
1996-10-20 21:55:14 +00:00
perry 0517d113dd RCSid Police 1996-10-16 15:41:06 +00:00
christos df34c6063d explicitly enumerate the ripv1 fields. 1996-09-24 17:00:27 +00:00
christos 4d3fba5988 - resolve conflicts
- try to follow rcsid style more closely
- fix rn_walktree callback routine signatures.
1996-09-24 16:24:12 +00:00
christos 7311bcb20e Latest version of routed(8) from Vernon Schryver <vjs@sgi.com> 1996-09-24 15:11:33 +00:00
mycroft 408ead452e Make sure to fill in the whole sockaddr_in when sending a discovery packet. 1996-08-10 02:37:41 +00:00
thorpej 8d1a5585e8 Add a manual page link from routed(8) to rdisc(8) as suggested by
Giles Lean <giles@nemeton.com.au> on the tech-net@NetBSD.ORG mailing
list.  The rationale for this is that folks may be used to rdisc(8)
or in.rdisc(8) on other systems, and may not realize that NetBSD
implements ICMP Router Discovery in the routed(8) program.
1996-08-10 01:48:41 +00:00
thorpej fc1a524603 - Finished up merge.
- Add some prototypes and definitions for types as necessary,
  wrapped in __NetBSD__ to maintain portability.

- Explicit size types in structures that go out the wire.

- RCS id police.
1996-08-10 01:28:58 +00:00
thorpej b1e0bd39e1 A leaner, meaner routed(8), implementing RIPv1, RIPv2, and ICMP Router
Discovery, courtesy of Vernon Schryver <vjs@sgi.com>.  Thanks!
1996-08-10 01:08:06 +00:00
scottr c88084b900 Grammar police, noted by Peter Seebach <seebs@solon.com>; closes PR #1704. 1996-02-06 20:34:28 +00:00
ws a2465235f4 RIP address families are still 2 bytes 1995-07-24 13:03:25 +00:00
christos 68b7908bf9 Fix bugs cgd pointed out. 1995-07-13 23:20:10 +00:00
cgd 3f230414c7 fix a stupid bug; wrong size was being used for sin_len. 1995-07-13 10:43:23 +00:00
christos 4841cf2927 - Support rip version 2.
- Add ansi prototypes.
- Be less internet centric.
- Convert queues to use <sys/queue.h> so we don't need -lcompat
1995-06-20 22:25:51 +00:00
ragge 06514eb892 Took away use of vax inline functions. Didn't work anyway. 1995-05-31 20:44:35 +00:00
jtc 470a6be999 <sys/errno.h> -> <errno.h>
<sys/signal.h> -> <signal.h>
<sys/syslog.h> -> <syslog.h>
1995-05-28 05:37:32 +00:00
mycroft 2b3cba51fb s/an active/a passive/ 1995-05-24 15:55:02 +00:00
mycroft 312851eab6 Format police. 1995-05-24 15:54:00 +00:00
christos 1f1b61fc49 Fix bug in af_format where the formatted address was returned in the same
static buffer. When af_format is used more than once in the same printf
statement, the second call will overwrite the first. Changed af_format to
take a buffer and the buffer size where to place the formatted string.
1995-05-24 15:22:52 +00:00
mycroft 10f79d3be3 Use inet_aton(), not inet_addr(). 1995-05-21 14:22:23 +00:00
cgd 2fe1f93ac5 fix arguments to tracing functions and/or cast, to avoid warnings. 1995-04-24 13:24:30 +00:00
mycroft 6bfd77e432 Fix typo in previous. 1995-03-23 00:01:03 +00:00
mycroft be82a25869 Use POSIX signals. 1995-03-21 18:48:41 +00:00
mycroft 6faa350c7d Fix typo. 1995-03-21 14:05:36 +00:00
mycroft ffe9a4ccf0 Update to use timer{add,sub}(). 1995-03-21 13:55:23 +00:00
cgd 0114e805ce convert to new RCS Id conventions; reduce my headache 1995-03-18 14:54:19 +00:00
mycroft 705a6ebacb Use S_IS*(). 1995-01-30 19:39:36 +00:00
cgd ae9481b5c5 kill some redundant includes. 1994-12-23 13:13:06 +00:00
cgd 06e2955ff1 specify man pages the new way. 1994-12-22 10:44:04 +00:00
cgd e072e2ae63 some -Wall changes, from Jim Jegers, improved (in some cases) by me.
still needs a bit of work, but closer.
1994-12-18 05:43:48 +00:00
cgd 55b1ef78a6 pull in helpful includes. 1994-10-31 04:35:58 +00:00
mycroft 4922d725cf Remove some more uses of obsolete functions. 1994-09-23 23:48:10 +00:00
mycroft ea7b5d4ec6 Eliminate uses of some obsolete functions. 1994-09-23 14:26:58 +00:00