summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/database.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-11-24 18:28:03 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-11-24 18:28:03 +0000
commit5460acda0cda78ccfa08605a33dad07c1451fce0 (patch)
treefc61f0c47e2639ce346fc937e08d93e60d7a57f1 /usr.sbin/ospfd/database.c
parent04603baab844b95908eff978bb0c1b88810f203c (diff)
Initial support for stub areas. The bit still missing is the redistribution
of the default summary net lsa on ABRs but that is comming. OK norby@
Diffstat (limited to 'usr.sbin/ospfd/database.c')
-rw-r--r--usr.sbin/ospfd/database.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ospfd/database.c b/usr.sbin/ospfd/database.c
index bd29a4bf4d2..9f6b58befac 100644
--- a/usr.sbin/ospfd/database.c
+++ b/usr.sbin/ospfd/database.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: database.c,v 1.22 2008/02/11 12:37:37 norby Exp $ */
+/* $OpenBSD: database.c,v 1.23 2008/11/24 18:28:02 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -235,16 +235,15 @@ recv_db_description(struct nbr *nbr, char *buf, u_int16_t len)
}
nbr->dd_seq_num++;
+ /* event negotiation done */
+ nbr_fsm(nbr, NBR_EVT_NEG_DONE);
+
/* this packet may already have data so pass it on */
if (len > 0) {
nbr->dd_pending++;
ospfe_imsg_compose_rde(IMSG_DD, nbr->peerid,
0, buf, len);
}
-
- /* event negotiation done */
- nbr_fsm(nbr, NBR_EVT_NEG_DONE);
-
} else {
/* ignore packet */
log_debug("recv_db_description: packet ignored in "