Add route keywords -nocloned, -nocloning.
This commit is contained in:
parent
0cf23243f9
commit
61dbc26298
@ -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 */
|
/* WARNING! This file was generated by keywords.sh */
|
||||||
|
|
||||||
@ -12,6 +12,8 @@ struct keytab keywords[] = {
|
|||||||
{"change", K_CHANGE},
|
{"change", K_CHANGE},
|
||||||
{"cloned", K_CLONED},
|
{"cloned", K_CLONED},
|
||||||
{"cloning", K_CLONING},
|
{"cloning", K_CLONING},
|
||||||
|
{"nocloned", K_NOCLONED},
|
||||||
|
{"nocloning", K_NOCLONING},
|
||||||
{"delete", K_DELETE},
|
{"delete", K_DELETE},
|
||||||
{"dst", K_DST},
|
{"dst", K_DST},
|
||||||
{"expire", K_EXPIRE},
|
{"expire", K_EXPIRE},
|
||||||
|
@ -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 */
|
/* WARNING! This file was generated by keywords.sh */
|
||||||
|
|
||||||
@ -57,3 +57,5 @@ extern struct keytab {
|
|||||||
#define K_XNS 47
|
#define K_XNS 47
|
||||||
#define K_XRESOLVE 48
|
#define K_XRESOLVE 48
|
||||||
#define K_FLUSHALL 49
|
#define K_FLUSHALL 49
|
||||||
|
#define K_NOCLONED 50
|
||||||
|
#define K_NOCLONING 51
|
||||||
|
@ -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
|
* Copyright (c) 1983, 1989, 1991, 1993
|
||||||
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1991, 1993\n\
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
|
static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -913,6 +913,9 @@ newroute(int argc, char **argv)
|
|||||||
case K_CLONED:
|
case K_CLONED:
|
||||||
flags |= RTF_CLONED;
|
flags |= RTF_CLONED;
|
||||||
break;
|
break;
|
||||||
|
case K_NOCLONED:
|
||||||
|
flags &= ~RTF_CLONED;
|
||||||
|
break;
|
||||||
case K_PROTO1:
|
case K_PROTO1:
|
||||||
flags |= RTF_PROTO1;
|
flags |= RTF_PROTO1;
|
||||||
break;
|
break;
|
||||||
@ -922,6 +925,9 @@ newroute(int argc, char **argv)
|
|||||||
case K_CLONING:
|
case K_CLONING:
|
||||||
flags |= RTF_CLONING;
|
flags |= RTF_CLONING;
|
||||||
break;
|
break;
|
||||||
|
case K_NOCLONING:
|
||||||
|
flags &= ~RTF_CLONING;
|
||||||
|
break;
|
||||||
case K_XRESOLVE:
|
case K_XRESOLVE:
|
||||||
flags |= RTF_XRESOLVE;
|
flags |= RTF_XRESOLVE;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user