summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_update.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2009-03-22 22:35:01 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2009-03-22 22:35:01 +0000
commitec190bbf9f695c6eea05e314791affc4944a59d7 (patch)
tree65c618e2e9bd83fc4dc8729e992844b037f70c3e /usr.sbin/bgpd/rde_update.c
parentbd49eb030790b0ecaed931e7e76cb7ca7bcdd22a (diff)
make transparent-as yes|no settable peer neighbor with the global setting
acting as default. per-neighbor requested by arnold nipper @ decix, ok claudio
Diffstat (limited to 'usr.sbin/bgpd/rde_update.c')
-rw-r--r--usr.sbin/bgpd/rde_update.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde_update.c b/usr.sbin/bgpd/rde_update.c
index 157dbc57941..bebfcff1a94 100644
--- a/usr.sbin/bgpd/rde_update.c
+++ b/usr.sbin/bgpd/rde_update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_update.c,v 1.65 2009/03/13 04:18:12 claudio Exp $ */
+/* $OpenBSD: rde_update.c,v 1.66 2009/03/22 22:35:00 henning Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -629,7 +629,7 @@ up_generate_attr(struct rde_peer *peer, struct update_attr *upa,
/* aspath */
if (!peer->conf.ebgp ||
- rde_decisionflags() & BGPD_FLAG_DECISION_TRANS_AS)
+ peer->conf.flags & BGPD_FLAG_DECISION_TRANS_AS)
pdata = aspath_prepend(a->aspath, rde_local_as(), 0, &plen);
else
pdata = aspath_prepend(a->aspath, rde_local_as(), 1, &plen);
@@ -762,7 +762,7 @@ up_generate_attr(struct rde_peer *peer, struct update_attr *upa,
/* NEW to OLD conversion when going sending stuff to a 2byte AS peer */
if (neednewpath) {
if (!peer->conf.ebgp ||
- rde_decisionflags() & BGPD_FLAG_DECISION_TRANS_AS)
+ peer->conf.flags & BGPD_FLAG_DECISION_TRANS_AS)
pdata = aspath_prepend(a->aspath, rde_local_as(), 0,
&plen);
else