NetBSD Problem Report #53488
From www@NetBSD.org Tue Jul 31 21:57:47 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 342617B469
for <gnats-bugs@gnats.NetBSD.org>; Tue, 31 Jul 2018 21:57:47 +0000 (UTC)
Message-Id: <20180731215745.5F9A07B468@mollari.NetBSD.org>
Date: Tue, 31 Jul 2018 21:57:45 +0000 (UTC)
From: venture37@geeklan.co.uk
Reply-To: venture37@geeklan.co.uk
To: gnats-bugs@NetBSD.org
Subject: Manual changes to sbin/route/keywords.h get overwritten on regen
X-Send-Pr-Version: www-1.0
>Number: 53488
>Category: bin
>Synopsis: Manual changes to sbin/route/keywords.h get overwritten on regen
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 31 22:00:00 +0000 2018
>Originator: Sevan Janiyan
>Release: NetBSD-HEAD
>Organization:
>Environment:
>Description:
Changes have been made directly to keywords.h which get overwritten upon regenerating the file using keywords.sh. I'd like to remove xns from the .sh file & regenerate the .h file but unsure if the changes from the .h file should be added back to the .sh file.
Regenerating keywords.h with the current version of keywords.sh without any changes causes the follow changes in keywords.h.
Index: keywords.h
===================================================================
RCS file: /cvsroot/src/sbin/route/keywords.h,v
retrieving revision 1.14
diff -u -p -r1.14 keywords.h
--- keywords.h 4 Apr 2016 07:37:07 -0000 1.14
+++ keywords.h 31 Jul 2018 21:49:41 -0000
@@ -1,4 +1,4 @@
-/* $NetBSD: keywords.h,v 1.14 2016/04/04 07:37:07 ozaki-r Exp $ */
+/* $NetBSD$ */
/* WARNING! This file was generated by keywords.sh */
@@ -12,9 +12,8 @@ extern struct keytab {
#define K_ATALK 2
#define K_BLACKHOLE 3
#define K_CHANGE 4
-/* #define K_CLONED 5 */
-/* #define K_CLONING 6 */
-#define K_CONNECTED 6
+#define K_CLONED 5
+#define K_CLONING 6
#define K_DELETE 7
#define K_DST 8
#define K_EXPIRE 9
@@ -31,7 +30,7 @@ extern struct keytab {
#define K_INET 20
#define K_INET6 21
#define K_LINK 22
-/* #define K_LLINFO 23 */
+#define K_LLINFO 23
#define K_LOCK 24
#define K_LOCKREST 25
#define K_MASK 26
@@ -54,11 +53,10 @@ extern struct keytab {
#define K_STATIC 43
#define K_X25 44
#define K_XNS 45
-/* #define K_XRESOLVE 46 */
+#define K_XRESOLVE 46
#define K_FLUSHALL 47
-/* #define K_NOCLONED 48 */
-/* #define K_NOCLONING 49 */
-#define K_NOCONNECTED 49
+#define K_NOCLONED 48
+#define K_NOCLONING 49
#define K_NOBLACKHOLE 50
#define K_NOREJECT 51
#define K_MPLS 52
>How-To-Repeat:
>Fix:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.