summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-03-09 22:54:06 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-03-09 22:54:06 +0100
commit631c13d2473e475096c77f129282671711c379bb (patch)
tree46271e037bcf2041f9e3156389a919d3f348e35a /src/config.y
parentec8109fa53082d242459893373f009e27f6732df (diff)
downloadfastd-631c13d2473e475096c77f129282671711c379bb.tar
fastd-631c13d2473e475096c77f129282671711c379bb.zip
Add options to hide IP and MAC addresses from log output
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y
index 0fec8d7..c62d5ba 100644
--- a/src/config.y
+++ b/src/config.y
@@ -107,6 +107,10 @@
%token TOK_CAPABILITIES
%token TOK_EARLY
%token TOK_LIMIT
+%token TOK_HIDE
+%token TOK_IP
+%token TOK_MAC
+%token TOK_ADDRESSES
%token <addr4> TOK_ADDR4
%token <addr6> TOK_ADDR6
@@ -156,6 +160,7 @@ statement: peer_group_statement
| TOK_GROUP group ';'
| TOK_DROP TOK_CAPABILITIES drop_capabilities ';'
| TOK_LOG log ';'
+ | TOK_HIDE hide ';'
| TOK_INTERFACE interface ';'
| TOK_BIND bind ';'
| TOK_MTU mtu ';'
@@ -225,6 +230,14 @@ log: TOK_LEVEL log_level {
}
;
+hide: TOK_IP TOK_ADDRESSES boolean {
+ conf->hide_ip_addresses = $3;
+ }
+ | TOK_MAC TOK_ADDRESSES boolean {
+ conf->hide_mac_addresses = $3;
+ }
+ ;
+
maybe_log_level:
TOK_LEVEL log_level { $$ = $2; }
| { $$ = FASTD_DEFAULT_LOG_LEVEL; }