public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][ATM] get skb->len right after adjusting head
@ 2003-02-24  1:30 chas williams
  2003-02-24  5:45 ` David S. Miller
  2003-02-24 15:17 ` Alan Cox
  0 siblings, 2 replies; 5+ messages in thread
From: chas williams @ 2003-02-24  1:30 UTC (permalink / raw)
  To: davem; +Cc: linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-24 23:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-24  1:30 [PATCH][ATM] get skb->len right after adjusting head chas williams
2003-02-24  5:45 ` David S. Miller
2003-02-24 13:38   ` chas williams
2003-02-24 23:36     ` David S. Miller
2003-02-24 15:17 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox