summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-05-29 23:05:03 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2014-05-29 23:05:03 +0200
commit9eceab33f97724be148f9f05614d7551940e85f1 (patch)
tree0d7867c13fc96a80c6c21051a2c4f376a6a05b43 /proto
parent05476c4d04a24bdb26fa64e05ab31bc36118f34e (diff)
String constants could be used for string option values.
Thanks to Frederik Kriewitz for the patch.
Diffstat (limited to 'proto')
-rw-r--r--proto/bfd/config.Y2
-rw-r--r--proto/bgp/config.Y2
2 files changed, 2 insertions, 2 deletions
diff --git a/proto/bfd/config.Y b/proto/bfd/config.Y
index 948079df..1b07495e 100644
--- a/proto/bfd/config.Y
+++ b/proto/bfd/config.Y
@@ -99,7 +99,7 @@ bfd_multihop: bfd_iface_start bfd_iface_opt_list
bfd_neigh_iface:
/* empty */ { $$ = NULL; }
| '%' SYM { $$ = if_get_by_name($2->name); }
- | DEV TEXT { $$ = if_get_by_name($2); }
+ | DEV text { $$ = if_get_by_name($2); }
;
bfd_neigh_local:
diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y
index 6b885032..4d085d42 100644
--- a/proto/bgp/config.Y
+++ b/proto/bgp/config.Y
@@ -103,7 +103,7 @@ bgp_proto:
| bgp_proto ENABLE AS4 bool ';' { BGP_CFG->enable_as4 = $4; }
| bgp_proto CAPABILITIES bool ';' { BGP_CFG->capabilities = $3; }
| bgp_proto ADVERTISE IPV4 bool ';' { BGP_CFG->advertise_ipv4 = $4; }
- | bgp_proto PASSWORD TEXT ';' { BGP_CFG->password = $3; }
+ | bgp_proto PASSWORD text ';' { BGP_CFG->password = $3; }
| bgp_proto ROUTE LIMIT expr ';' {
this_proto->in_limit = cfg_allocz(sizeof(struct proto_limit));
this_proto->in_limit->limit = $4;