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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18322
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 PROG= routed
SRCS= if.c input.c main.c output.c parms.c radix.c rdisc.c table.c trace.c 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 SUBDIR= rtquery
DPADD= ${LIBCOMPAT}
LDADD= -lcompat
#COPTS= -g -DDEBUG -Wall #COPTS= -g -DDEBUG -Wall
.include <bsd.prog.mk> .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. * SUCH DAMAGE.
* *
* @(#)defs.h 8.1 (Berkeley) 6/5/93 * @(#)defs.h 8.1 (Berkeley) 6/5/93
* * $Id$
* $NetBSD$
*/ */
#ifndef __NetBSD__ #ifndef __NetBSD__
#ident "$Revision: 1.16 $" #ident "$Revision: 1.1.1.1 $"
#endif #endif
/* Definitions for RIPv2 routing process. /* 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__) #elif defined(__NetBSD__)
static char rcsid[] = "$NetBSD$"; static char rcsid[] = "$NetBSD$";
#endif #endif
#ident "$Revision: 1.17 $" #ident "$Revision: 1.1.1.1 $"
#include "defs.h" #include "defs.h"
#include "pathnames.h" #include "pathnames.h"
@ -119,7 +119,7 @@ main(int argc,
(void)gethostname(myname, sizeof(myname)-1); (void)gethostname(myname, sizeof(myname)-1);
(void)gethost(myname, &myaddr); (void)gethost(myname, &myaddr);
while ((n = getopt(argc, argv, "sqdghmpAtT:F:P:")) != EOF) { while ((n = getopt(argc, argv, "sqdghmAtT:F:P:")) != EOF) {
switch (n) { switch (n) {
case 's': case 's':
supplier = 1; supplier = 1;

View File

@ -39,7 +39,7 @@
.Nd network RIP and router discovery routing daemon .Nd network RIP and router discovery routing daemon
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl sqdghmpAt .Op Fl sqdghmAt
.Op Fl T Ar tracefile .Op Fl T Ar tracefile
.Oo .Oo
.Fl F .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 PROG= rtquery
MAN8= rtquery.0 MAN8= rtquery.8
#COPTS= -g -DDEBUG -Wall #COPTS= -g -DDEBUG -Wall
.include "../../Makefile.inc"
.include <bsd.prog.mk> .include <bsd.prog.mk>

View File

@ -36,7 +36,7 @@ static char sccsid[] = "@(#)tables.c 8.1 (Berkeley) 6/5/93";
#elif defined(__NetBSD__) #elif defined(__NetBSD__)
static char rcsid[] = "$NetBSD$"; static char rcsid[] = "$NetBSD$";
#endif #endif
#ident "$Revision: 1.25 $" #ident "$Revision: 1.1.1.1 $"
#include "defs.h" #include "defs.h"
@ -1570,8 +1570,15 @@ rtadd(naddr dst,
if (0 == rhead->rnh_addaddr(&rt->rt_dst_sock, &mask_sock, if (0 == rhead->rnh_addaddr(&rt->rt_dst_sock, &mask_sock,
rhead, rt->rt_nodes)) { 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", msglog("rnh_addaddr() failed for %s mask=%#x",
naddr_ntoa(dst), mask); naddr_ntoa(dst), mask);
#endif
} }
} }