diff options
author | peter <peter@FreeBSD.org> | 1996-08-13 09:19:45 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-08-13 09:19:45 +0000 |
commit | 72e76de98b5f5e79b11ef4c422ffdbbfe10d2f68 (patch) | |
tree | fa02eee6ff9e8adc3a70972eb612d6ab986118a6 /usr.sbin/ppp/route.c | |
parent | 42c8685e61e5c57e480d2d09ff488f125a21f858 (diff) | |
download | FreeBSD-src-72e76de98b5f5e79b11ef4c422ffdbbfe10d2f68.zip FreeBSD-src-72e76de98b5f5e79b11ef4c422ffdbbfe10d2f68.tar.gz |
Add RTF_STATIC to default route's flags in the hope that routed will no
longer remove it while it is running.
Diffstat (limited to 'usr.sbin/ppp/route.c')
-rw-r--r-- | usr.sbin/ppp/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c index b130533..23ad578 100644 --- a/usr.sbin/ppp/route.c +++ b/usr.sbin/ppp/route.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: route.c,v 1.5 1996/01/11 17:48:56 phk Exp $ + * $Id: route.c,v 1.6 1996/05/11 20:48:42 phk Exp $ * */ #include <sys/types.h> @@ -75,7 +75,7 @@ struct in_addr mask; if (cmd == RTM_ADD) rtmes.m_rtm.rtm_addrs |= RTA_GATEWAY; rtmes.m_rtm.rtm_seq = ++seqno; rtmes.m_rtm.rtm_pid = getpid(); - rtmes.m_rtm.rtm_flags = RTF_UP | RTF_GATEWAY; + rtmes.m_rtm.rtm_flags = RTF_UP | RTF_GATEWAY | RTF_STATIC; bzero(&rtdata, sizeof(rtdata)); rtdata.sin_len = 16; |