masklength is better known as prefixlength.
[tinc] / src / net_packet.c
index dcdd73c..fd2ae06 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: net_packet.c,v 1.1.2.11 2002/03/18 22:47:20 guus Exp $
+    $Id: net_packet.c,v 1.1.2.13 2002/03/27 15:01:37 guus Exp $
 */
 
 #include "config.h"
@@ -212,9 +212,14 @@ cp
 
       list_insert_tail(n->queue, copy);
 
+      if(n->queue->count > MAXQUEUELENGTH)
+        list_delete_head(n->queue);
+
       if(!n->status.waitingforkey)
         send_req_key(n->nexthop->connection, myself, n);
 
+      n->status.waitingforkey = 1;
+
       return;
     }