From 631c13d2473e475096c77f129282671711c379bb Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 9 Mar 2013 22:54:06 +0100 Subject: Add options to hide IP and MAC addresses from log output --- src/config.y | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/config.y') 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 TOK_ADDR4 %token 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; } -- cgit v1.2.3