artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0623538
)
allow setting localpref to 0
author
phessler
<phessler@openbsd.org>
Mon, 26 Jun 2017 10:04:21 +0000
(10:04 +0000)
committer
phessler
<phessler@openbsd.org>
Mon, 26 Jun 2017 10:04:21 +0000
(10:04 +0000)
from Job Snijders
ok phessler@ benno@
usr.sbin/bgpd/parse.y
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/parse.y
b/usr.sbin/bgpd/parse.y
index
6dff3ef
..
ce06f4d
100644
(file)
--- a/
usr.sbin/bgpd/parse.y
+++ b/
usr.sbin/bgpd/parse.y
@@
-1,4
+1,4
@@
-/* $OpenBSD: parse.y,v 1.3
09 2017/05/31 20:01:51 claudio
Exp $ */
+/* $OpenBSD: parse.y,v 1.3
10 2017/06/26 10:04:21 phessler
Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@
-1988,7
+1988,7
@@
filter_set_opt : LOCALPREF NUMBER {
}
if (($$ = calloc(1, sizeof(struct filter_set))) == NULL)
fatal(NULL);
- if ($2 > 0) {
+ if ($2 >
=
0) {
$$->type = ACTION_SET_LOCALPREF;
$$->action.metric = $2;
} else {