summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_rib.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-11-10 12:41:59 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-11-10 12:41:59 +0000
commit245472f14aeae5c34a933ee7d3dcc962630ce338 (patch)
tree2a19e8def6c698b0e072e52fe737b460b912e05b /usr.sbin/bgpd/rde_rib.c
parent84a0d4992eb0833fe2e4fb013d06578958d09f49 (diff)
Remove no longer needed code. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r--usr.sbin/bgpd/rde_rib.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index 39b9fe201eb..e0fca5bc461 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.59 2004/08/17 15:39:36 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.60 2004/11/10 12:41:58 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -726,14 +726,12 @@ nexthop_update(struct kroute_nexthop *msg)
nh->state = NEXTHOP_UNREACH;
if (msg->connected) {
- if (!(nh->flags & NEXTHOP_LINKLOCAL))
- /* use linklocal address if provided */
- nh->true_nexthop = nh->exit_nexthop;
nh->flags |= NEXTHOP_CONNECTED;
- } else {
- nh->true_nexthop = msg->gateway;
- nh->flags &= ~NEXTHOP_LINKLOCAL;
- }
+ memcpy(&nh->true_nexthop, &nh->exit_nexthop,
+ sizeof(nh->true_nexthop));
+ } else
+ memcpy(&nh->true_nexthop, &msg->gateway,
+ sizeof(nh->true_nexthop));
nh->nexthop_netlen = msg->kr.kr4.prefixlen;
nh->nexthop_net.af = AF_INET;