summaryrefslogtreecommitdiff
path: root/proto/ospf/dbdes.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-04 18:51:29 +0000
committerOndrej Filip <feela@network.cz>2004-06-04 18:51:29 +0000
commite7ef86a58cc5393ba764606b0ee6d760e6164f0c (patch)
tree19fab1206527558cbfc7fac11945ce477757c251 /proto/ospf/dbdes.c
parentf158bb710b8be65b626f54399c8a5db8df9bd7b6 (diff)
OSPF is ready for changing MTU.
Diffstat (limited to 'proto/ospf/dbdes.c')
-rw-r--r--proto/ospf/dbdes.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c
index f591955b..3cc263cd 100644
--- a/proto/ospf/dbdes.c
+++ b/proto/ospf/dbdes.c
@@ -119,6 +119,12 @@ ospf_dbdes_send(struct ospf_neighbor *n)
case NEIGHBOR_FULL:
length = ntohs(((struct ospf_packet *)n)->length);
+ if(!length)
+ {
+ OSPF_TRACE(D_PACKETS, "No packet in my buffer for repeating");
+ ospf_neigh_sm(n, INM_KILLNBR);
+ }
+
memcpy(ifa->ip_sk->tbuf, n->ldbdes, length);
/* Copy last sent packet again */