summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-03 18:56:00 +0200
committerMartin Mares <mj@ucw.cz>2000-06-03 18:56:00 +0200
commitc0b2f6463fd7464ce6fe4d9dc67f37e61bface11 (patch)
treee779f515bde34e013a22246f3aecb0f15220c42c
parent3d675cdbe7287d3024d041ce4e28dacf7ca527cc (diff)
downloadbird-c0b2f6463fd7464ce6fe4d9dc67f37e61bface11.tar
bird-c0b2f6463fd7464ce6fe4d9dc67f37e61bface11.zip
cf_symbol_class_name now recognizes SYM_IPA.
-rw-r--r--conf/cf-lex.l2
-rw-r--r--conf/conf.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index a30ddfb..27ea86e 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -349,6 +349,8 @@ cf_symbol_class_name(struct symbol *sym)
return "filter";
case SYM_TABLE:
return "routing table";
+ case SYM_IPA:
+ return "network address";
default:
return "unknown type";
}
diff --git a/conf/conf.h b/conf/conf.h
index b8bfd94..24e3217 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -81,6 +81,7 @@ struct symbol {
char name[1];
};
+/* Remember to update cf_symbol_class_name() */
#define SYM_VOID 0
#define SYM_PROTO 1
#define SYM_NUMBER 2