[PATCH][ATM] get skb->len right after adjusting head

From: chas williams (chas@locutus.cmf.nrl.navy.mil)
Date: Sun Feb 23 2003 - 20:30:49 EST


when the lane client strips off the lec it should also adjust the length
of skb

Index: linux/net/atm/lec.c
===================================================================
RCS file: /home/chas/CVSROOT/linux/net/atm/lec.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -b -w -r1.3 -r1.4
--- linux/net/atm/lec.c 22 Feb 2003 17:38:23 -0000 1.3
+++ linux/net/atm/lec.c 22 Feb 2003 17:43:41 -0000 1.4
@@ -714,6 +714,7 @@
                 }
                 skb->dev = dev;
                 skb->data += 2; /* skip lec_id */
+ skb->len -= 2;
 #ifdef CONFIG_TR
                 if (priv->is_trdev) skb->protocol = tr_type_trans(skb, dev);
                 else
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Feb 23 2003 - 22:00:40 EST