Add the default route as static, so that routed does not delete it.

This commit is contained in:
christos 1998-08-27 06:55:16 +00:00
parent a465fdedc6
commit 73270b4cf4
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.24 1998/05/02 14:19:13 christos Exp $
# $NetBSD: Makefile,v 1.25 1998/08/27 06:55:16 christos Exp $
PCAPDIR=${.CURDIR}/../../../lib/libpcap
@ -13,7 +13,8 @@ BINOWN= root
LDADD= -lpcap -lcrypt -lutil
DPADD= ${LIBPCAP} ${LIBCRYPT} ${LIBUTIL}
CPPFLAGS+= -I. -DHAVE_PATHS_H -I${PCAPDIR} -DPPP_FILTER -DCBCP_SUPPORT
CPPFLAGS+= -DCHAPMS -DUSE_CRYPT -DMSLANMAN
CPPFLAGS+= -I. -DHAVE_PATHS_H
CPPFLAGS+= -I${PCAPDIR} -DPPP_FILTER
CPPFLAGS+= -DCBCP_SUPPORT -DCHAPMS -DUSE_CRYPT -DMSLANMAN
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys-bsd.c,v 1.26 1998/05/02 14:19:16 christos Exp $ */
/* $NetBSD: sys-bsd.c,v 1.27 1998/08/27 06:55:16 christos Exp $ */
/*
* sys-bsd.c - System-dependent procedures for setting up
@ -27,7 +27,7 @@
#if 0
static char rcsid[] = "Id: sys-bsd.c,v 1.31 1998/04/02 12:04:19 paulus Exp ";
#else
__RCSID("$NetBSD: sys-bsd.c,v 1.26 1998/05/02 14:19:16 christos Exp $");
__RCSID("$NetBSD: sys-bsd.c,v 1.27 1998/08/27 06:55:16 christos Exp $");
#endif
#endif
@ -1073,7 +1073,7 @@ dodefaultroute(g, cmd)
memset(&rtmsg, 0, sizeof(rtmsg));
rtmsg.hdr.rtm_type = cmd == 's'? RTM_ADD: RTM_DELETE;
rtmsg.hdr.rtm_flags = RTF_UP | RTF_GATEWAY;
rtmsg.hdr.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC;
rtmsg.hdr.rtm_version = RTM_VERSION;
rtmsg.hdr.rtm_seq = ++rtm_seq;
rtmsg.hdr.rtm_addrs = RTA_DST | RTA_GATEWAY | RTA_NETMASK;