summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde_rib.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-08-17 15:39:37 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-08-17 15:39:37 +0000
commit4b6e856615cb5509d01b2125b02520674eb655cd (patch)
treee683650f209e92c8e05010b5749230da2def592e /usr.sbin/bgpd/rde_rib.c
parent99759626b3d6caa76c6f860601e231c3b58cdffd (diff)
Always update prefix timestamp even if nothing has changed. Without this
networks disappear after reload. OK henning@
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r--usr.sbin/bgpd/rde_rib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c
index f3f00a7668e..39b9fe201eb 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.58 2004/08/13 14:03:20 claudio Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.59 2004/08/17 15:39:36 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -92,6 +92,8 @@ path_update(struct rde_peer *peer, struct rde_aspath *nasp,
} else {
/* already registered */
path_put(nasp);
+ /* update last change */
+ p->lastchange = time(NULL);
}
} else if ((asp = path_lookup(nasp, peer)) == NULL) {
/* path not available */