summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-04-12 14:32:02 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-04-12 14:32:02 +0000
commitcf15ea6afd9afb2f756e819126b4db8ed244adf9 (patch)
tree44a92901de0895b80ab82145c4c9cc1aca114a48 /usr.sbin/bgpd/rde.h
parent69eb085e352c4a2ce2742b3774e248665379d0ac (diff)
Introduce a per prefix weight. The weight is used to tip prefixes with equal
long AS pathes in one or the other direction. It weights a prefix at a very late stage in the decision process. This is a nice bgpd feature to traffic engineer networks where most AS pathes are equally long. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-rw-r--r--usr.sbin/bgpd/rde.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index c61a6523c7b..dc09c897489 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.63 2005/03/11 12:54:20 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.64 2005/04/12 14:32:00 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -161,6 +161,7 @@ struct rde_aspath {
char pftable[PFTABLE_LEN];
u_int32_t med; /* multi exit disc */
u_int32_t lpref; /* local pref */
+ u_int32_t weight; /* low prio lpref */
u_int16_t flags; /* internally used */
u_int16_t prefix_cnt; /* # of prefixes */
u_int16_t active_cnt; /* # of active prefixes */