summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-11-01 18:11:25 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-11-01 18:11:25 +0000
commita99d13d18f7ee312fa9187cd07f68dae9af61f78 (patch)
tree6afc4fc21fb9e883f50d7c6057f71b8c4127a770
parent99f8863d681093fcd190c7a87414a3244fdb97aa (diff)
Relative metrics should be stored in relative and not metric. The one
is singed the other not.
-rw-r--r--usr.sbin/bgpd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 11057b2f886..37de5827591 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.174 2005/11/01 17:34:58 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.175 2005/11/01 18:11:24 claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1276,7 +1276,7 @@ filter_set_opt : LOCALPREF number {
if (($$ = calloc(1, sizeof(struct filter_set))) == NULL)
fatal(NULL);
$$->type = ACTION_SET_RELATIVE_MED;
- $$->action.metric = $3;
+ $$->action.relative = $3;
}
| MED '-' number {
if ($3 > INT_MAX) {
@@ -1328,7 +1328,7 @@ filter_set_opt : LOCALPREF number {
if (($$ = calloc(1, sizeof(struct filter_set))) == NULL)
fatal(NULL);
$$->type = ACTION_SET_RELATIVE_WEIGHT;
- $$->action.metric = $3;
+ $$->action.relative = $3;
}
| WEIGHT '-' number {
if ($3 > INT_MAX) {