From 8554e18558853e6f6d8f38fc97f56b3ddfc7418a Mon Sep 17 00:00:00 2001 From: wollman Date: Mon, 16 Sep 1996 17:04:22 +0000 Subject: Layer on FreeBSD local changes from old routed. --- sbin/routed/Makefile | 18 +++--------------- sbin/routed/Makefile.inc | 1 + sbin/routed/defs.h | 5 ++--- sbin/routed/main.c | 4 ++-- sbin/routed/routed.8 | 2 +- sbin/routed/rtquery/Makefile | 6 +++--- sbin/routed/table.c | 9 ++++++++- 7 files changed, 20 insertions(+), 25 deletions(-) create mode 100644 sbin/routed/Makefile.inc (limited to 'sbin/routed') diff --git a/sbin/routed/Makefile b/sbin/routed/Makefile index c567e68e..b17fd70 100644 --- a/sbin/routed/Makefile +++ b/sbin/routed/Makefile @@ -1,22 +1,10 @@ -# @(#)Makefile 8.1 (Berkeley) 6/19/93 +# From: @(#)Makefile 8.1 (Berkeley) 6/19/93 +# $Id$ PROG= routed SRCS= if.c input.c main.c output.c parms.c radix.c rdisc.c table.c trace.c -MAN8= routed.0 +MAN8= routed.8 SUBDIR= rtquery -DPADD= ${LIBCOMPAT} -LDADD= -lcompat #COPTS= -g -DDEBUG -Wall .include - -.if (${MACHINE} == "vax") -# The following can be deleted where not appropriate to use the kernel's -# inline code expansions. -INLINE= /sys/vax/inline/obj/inline -C2= /usr/libexec/c2 -.c.o: - ${CC} -S ${CFLAGS} ${.CURDIR}/${.PREFIX}.c - @${C2} ${.PREFIX}.s | ${INLINE} | ${AS} -o ${.PREFIX}.o - @rm -f ${.PREFIX}.s -.endif diff --git a/sbin/routed/Makefile.inc b/sbin/routed/Makefile.inc new file mode 100644 index 0000000..10fa13f --- /dev/null +++ b/sbin/routed/Makefile.inc @@ -0,0 +1 @@ +.include "../../Makefile.inc" diff --git a/sbin/routed/defs.h b/sbin/routed/defs.h index 452b71a..8dcf6ae 100644 --- a/sbin/routed/defs.h +++ b/sbin/routed/defs.h @@ -31,12 +31,11 @@ * SUCH DAMAGE. * * @(#)defs.h 8.1 (Berkeley) 6/5/93 - * - * $NetBSD$ + * $Id$ */ #ifndef __NetBSD__ -#ident "$Revision: 1.16 $" +#ident "$Revision: 1.1.1.1 $" #endif /* Definitions for RIPv2 routing process. diff --git a/sbin/routed/main.c b/sbin/routed/main.c index 84a7fac..4c353ae 100644 --- a/sbin/routed/main.c +++ b/sbin/routed/main.c @@ -39,7 +39,7 @@ static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/5/93"; #elif defined(__NetBSD__) static char rcsid[] = "$NetBSD$"; #endif -#ident "$Revision: 1.17 $" +#ident "$Revision: 1.1.1.1 $" #include "defs.h" #include "pathnames.h" @@ -119,7 +119,7 @@ main(int argc, (void)gethostname(myname, sizeof(myname)-1); (void)gethost(myname, &myaddr); - while ((n = getopt(argc, argv, "sqdghmpAtT:F:P:")) != EOF) { + while ((n = getopt(argc, argv, "sqdghmAtT:F:P:")) != EOF) { switch (n) { case 's': supplier = 1; diff --git a/sbin/routed/routed.8 b/sbin/routed/routed.8 index de3abf3..4d203a7 100644 --- a/sbin/routed/routed.8 +++ b/sbin/routed/routed.8 @@ -39,7 +39,7 @@ .Nd network RIP and router discovery routing daemon .Sh SYNOPSIS .Nm -.Op Fl sqdghmpAt +.Op Fl sqdghmAt .Op Fl T Ar tracefile .Oo .Fl F diff --git a/sbin/routed/rtquery/Makefile b/sbin/routed/rtquery/Makefile index f9aee5c..e748e73 100644 --- a/sbin/routed/rtquery/Makefile +++ b/sbin/routed/rtquery/Makefile @@ -1,8 +1,8 @@ -# @(#)Makefile 8.1 (Berkeley) 6/5/93 +# From: @(#)Makefile 8.1 (Berkeley) 6/5/93 +# $Id$ PROG= rtquery -MAN8= rtquery.0 +MAN8= rtquery.8 #COPTS= -g -DDEBUG -Wall -.include "../../Makefile.inc" .include diff --git a/sbin/routed/table.c b/sbin/routed/table.c index 6ad97f0..cef0f90 100644 --- a/sbin/routed/table.c +++ b/sbin/routed/table.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)tables.c 8.1 (Berkeley) 6/5/93"; #elif defined(__NetBSD__) static char rcsid[] = "$NetBSD$"; #endif -#ident "$Revision: 1.25 $" +#ident "$Revision: 1.1.1.1 $" #include "defs.h" @@ -1570,8 +1570,15 @@ rtadd(naddr dst, if (0 == rhead->rnh_addaddr(&rt->rt_dst_sock, &mask_sock, rhead, rt->rt_nodes)) { +/* + * This will happen if RIP1 and RIP2 routeds talk to one another and + * there are variable subnets. This is only good for filling up your + * syslog. -jkh + */ +#if 0 msglog("rnh_addaddr() failed for %s mask=%#x", naddr_ntoa(dst), mask); +#endif } } -- cgit v1.1