diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-03-11 12:54:21 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-03-11 12:54:21 +0000 |
commit | 9cf558b328c8aee614395d1731b9dafa0d2ca9bb (patch) | |
tree | 49978b6b33a570b0469b0743bc607e86d0b2a162 /usr.sbin/bgpd/rde_rib.c | |
parent | e45069d653342d4463f4f43fcc2fd66dbc4d4c31 (diff) |
Finally commit the transparent-as and nexthop no-modify stuff I wrote on the
way to FOSDEM. With transparent-as set to ye bgpd will not prepend his own
AS for sent updates. NB the neighbor needs to set "enforce neighbor-as no"
or it will not like the received AS paths. With set nexthop no-modify bgpd
will change the nexthop as done normaly.
OK henning@ man page update with help of jmc@
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index 5e9dbc4830f..ea3295164d2 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.63 2004/11/23 13:07:01 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.64 2005/03/11 12:54:20 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -762,6 +762,10 @@ nexthop_modify(struct rde_aspath *asp, struct bgpd_addr *nexthop, asp->flags |= F_NEXTHOP_BLACKHOLE; return; } + if (type == ACTION_SET_NEXTHOP_NOMODIFY) { + asp->flags |= F_NEXTHOP_NOMODIFY; + return; + } if (af != nexthop->af) return; |