From 03f613d4088f5cc03fcc8a64acc7bf8ba1eae8e3 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 22 Mar 2015 23:34:28 +0100 Subject: Make iface_persist configurable --- src/config.y | 7 +++++++ src/lex.c | 1 + 2 files changed, 8 insertions(+) (limited to 'src') 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 }, -- cgit v1.2.3