From e7ef86a58cc5393ba764606b0ee6d760e6164f0c Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Fri, 4 Jun 2004 18:51:29 +0000 Subject: OSPF is ready for changing MTU. --- proto/ospf/dbdes.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proto/ospf/dbdes.c') diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index f591955..3cc263c 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 */ -- cgit v1.2.3