diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-26 21:33:15 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-26 21:33:15 +0000 |
commit | 7808764c2cea28ec6a630dc7945bbaef9b2ee8f4 (patch) | |
tree | 34e16b72e8d1137fd4e39a58b1df7093cb55b563 | |
parent | d3021c5b77e8fe6b89b10e0d5b3c14d80d95ba06 (diff) |
when asking the kernel to add a route, send him the true nexthop and not
the exit nexthop as the latter will only work if the two happen to be equal
-rw-r--r-- | usr.sbin/bgpd/rde.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 7c9bd4d99a2..9549a824e2b 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.34 2003/12/26 20:52:14 jakob Exp $ */ +/* $OpenBSD: rde.c,v 1.35 2003/12/26 21:33:14 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -555,7 +555,7 @@ rde_send_kroute(struct prefix *new, struct prefix *old) kr.prefix = p->prefix->prefix.s_addr; kr.prefixlen = p->prefix->prefixlen; - kr.nexthop = p->aspath->flags.nexthop.s_addr; + kr.nexthop = p->aspath->nexthop->true_nexthop.s_addr; if (imsg_compose(&ibuf_main, type, 0, &kr, sizeof(kr)) == -1) fatal("imsg_compose error"); |