Add route keywords -nocloned, -nocloning.

This commit is contained in:
dyoung 2006-08-06 17:44:56 +00:00
parent 0cf23243f9
commit 61dbc26298
3 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: keywords.c,v 1.5 2003/07/19 01:36:47 jrf Exp $ */
/* $NetBSD: keywords.c,v 1.6 2006/08/06 17:44:56 dyoung Exp $ */
/* WARNING! This file was generated by keywords.sh */
@ -12,6 +12,8 @@ struct keytab keywords[] = {
{"change", K_CHANGE},
{"cloned", K_CLONED},
{"cloning", K_CLONING},
{"nocloned", K_NOCLONED},
{"nocloning", K_NOCLONING},
{"delete", K_DELETE},
{"dst", K_DST},
{"expire", K_EXPIRE},

View File

@ -1,4 +1,4 @@
/* $NetBSD: keywords.h,v 1.8 2005/06/26 21:28:15 christos Exp $ */
/* $NetBSD: keywords.h,v 1.9 2006/08/06 17:44:56 dyoung Exp $ */
/* WARNING! This file was generated by keywords.sh */
@ -57,3 +57,5 @@ extern struct keytab {
#define K_XNS 47
#define K_XRESOLVE 48
#define K_FLUSHALL 49
#define K_NOCLONED 50
#define K_NOCLONING 51

View File

@ -1,4 +1,4 @@
/* $NetBSD: route.c,v 1.97 2006/01/29 22:11:10 wiz Exp $ */
/* $NetBSD: route.c,v 1.98 2006/08/06 17:44:56 dyoung Exp $ */
/*
* Copyright (c) 1983, 1989, 1991, 1993
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1991, 1993\n\
#if 0
static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: route.c,v 1.97 2006/01/29 22:11:10 wiz Exp $");
__RCSID("$NetBSD: route.c,v 1.98 2006/08/06 17:44:56 dyoung Exp $");
#endif
#endif /* not lint */
@ -913,6 +913,9 @@ newroute(int argc, char **argv)
case K_CLONED:
flags |= RTF_CLONED;
break;
case K_NOCLONED:
flags &= ~RTF_CLONED;
break;
case K_PROTO1:
flags |= RTF_PROTO1;
break;
@ -922,6 +925,9 @@ newroute(int argc, char **argv)
case K_CLONING:
flags |= RTF_CLONING;
break;
case K_NOCLONING:
flags &= ~RTF_CLONING;
break;
case K_XRESOLVE:
flags |= RTF_XRESOLVE;
break;