summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.y7
-rw-r--r--src/lex.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y
index f471040..e2bcb24 100644
--- a/src/config.y
+++ b/src/config.y
@@ -109,6 +109,7 @@
%token TOK_PACKET
%token TOK_PEER
%token TOK_PEERS
+%token TOK_PERSIST
%token TOK_PMTU
%token TOK_PORT
%token TOK_POST_DOWN
@@ -189,6 +190,7 @@ statement: peer_group_statement
| TOK_MTU mtu ';'
| TOK_PMTU pmtu ';'
| TOK_MODE mode ';'
+ | TOK_PERSIST persist ';'
| TOK_PROTOCOL protocol ';'
| TOK_SECRET secret ';'
| TOK_ON TOK_PRE_UP on_pre_up ';'
@@ -278,6 +280,11 @@ log: TOK_LEVEL log_level {
}
;
+persist: TOK_INTERFACE boolean {
+ conf.iface_persist = $2;
+ }
+ ;
+
hide: TOK_IP TOK_ADDRESSES boolean {
conf.hide_ip_addresses = $3;
}
diff --git a/src/lex.c b/src/lex.c
index f8e5c22..a11bc0a 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -106,6 +106,7 @@ static const keyword_t keywords[] = {
{ "packet", TOK_PACKET },
{ "peer", TOK_PEER },
{ "peers", TOK_PEERS },
+ { "persist", TOK_PERSIST },
{ "pmtu", TOK_PMTU },
{ "port", TOK_PORT },
{ "post-down", TOK_POST_DOWN },