summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-03-14 17:32:05 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-03-14 17:32:05 +0000
commitefcb58379e98814ab2ab67faeba5d6224722b141 (patch)
treeaa49db4b1cdae0d039f64902b6a52f11fb3eebe9 /usr.sbin/bgpd/bgpd.h
parentf74aa7bcc286fddc77ad2fcd4231a9842ba5d4f6 (diff)
Allow to modify the metrics in a relative way by prepending the number with
a '+' or '-'. e.g. set localpref +20. This is another gem from the FOSDEM lying around on my HD gathering dust. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.h')
-rw-r--r--usr.sbin/bgpd/bgpd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h
index 362a2026167..b03e88f7501 100644
--- a/usr.sbin/bgpd/bgpd.h
+++ b/usr.sbin/bgpd/bgpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpd.h,v 1.157 2005/03/14 12:25:50 henning Exp $ */
+/* $OpenBSD: bgpd.h,v 1.158 2005/03/14 17:32:04 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -540,7 +540,9 @@ struct filter_rule {
enum action_types {
ACTION_SET_LOCALPREF,
+ ACTION_SET_RELATIVE_LOCALPREF,
ACTION_SET_MED,
+ ACTION_SET_RELATIVE_MED,
ACTION_SET_PREPEND_SELF,
ACTION_SET_PREPEND_PEER,
ACTION_SET_NEXTHOP,
@@ -557,6 +559,7 @@ struct filter_set {
union {
u_int8_t prepend;
u_int32_t metric;
+ int32_t relative;
struct bgpd_addr nexthop;
struct filter_community community;
char pftable[PFTABLE_LEN];