summaryrefslogtreecommitdiffstats
path: root/src/config.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.y')
-rw-r--r--src/config.y7
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;