summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_rib.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-04-04 12:03:27 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-04-04 12:03:27 +0000
commit6fc3876f3f020b5679e0af917e447fc79917b836 (patch)
tree78349f0837eeacc740eec846a3672f2774a9fdca /usr.sbin/bgpd/rde_rib.c
parent0ab07f09d421dd74f6a0ddec4ab448983d9942f6 (diff)
add "set nexthop self", force nexthop to be set to own address even with IBGP
requested & tested Falk Brockerhoff <fb@smartterra.de>, and tony sarendal tested this too. claudio ok
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r--usr.sbin/bgpd/rde_rib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index 1908d831fac..2d93bdfe1f8 100644
--- a/usr.sbin/bgpd/rde_rib.c
+++ b/usr.sbin/bgpd/rde_rib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_rib.c,v 1.84 2006/03/15 15:37:40 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.85 2006/04/04 12:03:26 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -880,6 +880,10 @@ nexthop_modify(struct rde_aspath *asp, struct bgpd_addr *nexthop,
asp->flags |= F_NEXTHOP_NOMODIFY;
return;
}
+ if (type == ACTION_SET_NEXTHOP_SELF) {
+ asp->flags |= F_NEXTHOP_SELF;
+ return;
+ }
if (af != nexthop->af)
return;