<< | Thread Index | >> ]    [ << | Date Index | >> ]

Subject: [Patch] about the short packets problem
From: Olaf Titz <olaf,AT,bigred,DOT,inka,DOT,de>
Date: Sun, 9 Jun 2002 15:44:10 +0200

Okay, the length check is bogus. Please try this one.

--- cipe/sock.c 2002/05/30 11:49:17     1.33.2.2
+++ cipe/sock.c 2002/06/09 13:05:55
@@ -211,7 +211,8 @@
        goto framerr;
     }
 #endif
-    if (length<cipehdrlen+(c->sockshost?sizeof(struct sockshdr):0)) {
+    if (length<8+(c->sockshost?sizeof(struct sockshdr):0)) {
+        /* XX hardcoded IV size */
         printk(KERN_INFO "%s: got short packet from %s\n", c->dev->name,
                cipe_ntoa(saddr(skb)));
        goto framerr;

Olaf





<< | Thread Index | >> ]    [ << | Date Index | >> ]