diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-22 23:34:28 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 07:21:19 +0100 |
commit | 03f613d4088f5cc03fcc8a64acc7bf8ba1eae8e3 (patch) | |
tree | 38da47231e15dd57e0a3d6530c0f61cdf9507d52 | |
parent | 5f66dbf5d1c26851e0a47269abbc44fe3524e4e2 (diff) | |
download | fastd-03f613d4088f5cc03fcc8a64acc7bf8ba1eae8e3.tar fastd-03f613d4088f5cc03fcc8a64acc7bf8ba1eae8e3.zip |
Make iface_persist configurable
-rw-r--r-- | src/config.y | 7 | ||||
-rw-r--r-- | src/lex.c | 1 |
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; } @@ -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 }, |