Move inet_default into tables.c, and remove all of af.c, as it is no longer

used.
This commit is contained in:
mycroft 1993-12-18 01:46:20 +00:00
parent eeb1800b0e
commit c1bb61de2d
2 changed files with 9 additions and 4 deletions

View File

@ -1,8 +1,8 @@
# from: @(#)Makefile 5.16 (Berkeley) 4/26/91
# $Id: Makefile,v 1.5 1993/10/28 03:28:46 cgd Exp $
# $Id: Makefile,v 1.6 1993/12/18 01:46:20 mycroft Exp $
PROG= routed
SRCS= af.c if.c input.c main.c output.c startup.c tables.c timer.c \
SRCS= if.c input.c main.c output.c startup.c tables.c timer.c \
trace.c inet.c
MAN8= routed.0
#SUBDIR= query trace

View File

@ -33,7 +33,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)tables.c 5.17 (Berkeley) 6/1/90";*/
static char rcsid[] = "$Id: tables.c,v 1.4 1993/08/01 18:24:21 mycroft Exp $";
static char rcsid[] = "$Id: tables.c,v 1.5 1993/12/18 01:46:22 mycroft Exp $";
#endif /* not lint */
/*
@ -48,6 +48,12 @@ static char rcsid[] = "$Id: tables.c,v 1.4 1993/08/01 18:24:21 mycroft Exp $";
#define DEBUG 0
#endif
struct sockaddr_in inet_default = {
#ifdef RTM_ADD
sizeof (inet_default),
#endif
AF_INET, INADDR_ANY };
#ifdef RTM_ADD
#define FIXLEN(s) {if ((s)->sa_len == 0) (s)->sa_len = sizeof *(s);}
#else
@ -342,7 +348,6 @@ again:
*/
rtdefault()
{
extern struct sockaddr inet_default;
rtadd(&inet_default, &inet_default, 1,
RTS_CHANGED | RTS_PASSIVE | RTS_INTERNAL);