From 61dbc26298100bf0b4003c6f5edbfd4e0ce005b6 Mon Sep 17 00:00:00 2001 From: dyoung Date: Sun, 6 Aug 2006 17:44:56 +0000 Subject: [PATCH] Add route keywords -nocloned, -nocloning. --- sbin/route/keywords.c | 4 +++- sbin/route/keywords.h | 4 +++- sbin/route/route.c | 10 ++++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/sbin/route/keywords.c b/sbin/route/keywords.c index c7839b788823..59c039020ae1 100644 --- a/sbin/route/keywords.c +++ b/sbin/route/keywords.c @@ -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}, diff --git a/sbin/route/keywords.h b/sbin/route/keywords.h index 62f55560e868..fae34f4151a7 100644 --- a/sbin/route/keywords.h +++ b/sbin/route/keywords.h @@ -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 diff --git a/sbin/route/route.c b/sbin/route/route.c index 6b4fc732103f..39f2faad8aca 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -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;