diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 04:40:56 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 04:40:56 +0100 |
commit | a5a7b233b728f6d26a9f593f0a47265465522f4b (patch) | |
tree | 55994836c4dc15c98c344345004c025e812c2282 /src/config.y | |
parent | c162b223b8965490839b4d56701a8f37d5304a71 (diff) | |
download | fastd-a5a7b233b728f6d26a9f593f0a47265465522f4b.tar fastd-a5a7b233b728f6d26a9f593f0a47265465522f4b.zip |
peer: make interface name configurable per peer
Diffstat (limited to 'src/config.y')
-rw-r--r-- | src/config.y | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y index f2f597f..12beb4b 100644 --- a/src/config.y +++ b/src/config.y @@ -460,6 +460,7 @@ peer_conf: peer_conf peer_statement peer_statement: TOK_REMOTE peer_remote ';' | TOK_FLOAT peer_float ';' | TOK_KEY peer_key ';' + | TOK_INTERFACE peer_interface ';' | TOK_INCLUDE peer_include ';' ; @@ -524,6 +525,12 @@ peer_key: TOK_STRING { } ; +peer_interface: TOK_STRING { + free(state->peer->ifname); + state->peer->ifname = fastd_strdup($1->str); + } + ; + peer_include: TOK_STRING { if (!fastd_config_read($1->str, state->peer_group, state->peer, state->depth)) YYERROR; |