summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-02-02 14:06:06 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-02-02 14:06:06 +0000
commit77d306336665df0202684ea013b56ccab67d48cb (patch)
tree652858e3d80d9536217068cbab5d9e8c1e7be628 /usr.sbin/bgpd/rde.c
parente48d9cd4078b2e4ea1d1d65efef627a69574921f (diff)
Implement new special community "neighbor-as". neighbor-as is expanded on
the fly to the remote AS of the current neighbor. This can be used to simplify rulesets in a dramatic way -- going from a script based nightmare down to a handfull rules. jajajaja henning@
Diffstat (limited to 'usr.sbin/bgpd/rde.c')
-rw-r--r--usr.sbin/bgpd/rde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index cfcd1150e0c..d2c0a558ec7 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.198 2006/01/24 14:48:47 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.199 2006/02/02 14:06:05 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2268,7 +2268,7 @@ network_add(struct network_config *nc, int flagstatic)
else
p = &peerdynamic;
- rde_apply_set(asp, &nc->attrset, nc->prefix.af, p, DIR_IN);
+ rde_apply_set(asp, &nc->attrset, nc->prefix.af, p, p);
path_update(p, asp, &nc->prefix, nc->prefixlen, F_ORIGINAL);
path_update(p, asp, &nc->prefix, nc->prefixlen, F_LOCAL);