summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
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; }