Layer on FreeBSD local changes from old routed.

This commit is contained in:
Garrett Wollman 1996-09-16 17:04:22 +00:00
parent 1c7ee7bf52
commit 50d2cb3ed7
7 changed files with 20 additions and 25 deletions

View File

@ -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 <bsd.prog.mk>
.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

1
sbin/routed/Makefile.inc Normal file
View File

@ -0,0 +1 @@
.include "../../Makefile.inc"

View File

@ -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.

View File

@ -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;

View File

@ -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

View File

@ -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 <bsd.prog.mk>

View File

@ -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
}
}