]> git.pld-linux.org Git - packages/kernel.git/blob - atm-06-skb_pull.patch
- replaced by linux-2.4-sfq.patch
[packages/kernel.git] / atm-06-skb_pull.patch
1 In message <20030223.214513.120185268.davem@redhat.com>,"David S. Miller" writes:
2 >Don't try to modify skb->{data,len} by hands, let the skb_*()
3 >interfaces do it.  Use skb_pull() in this case.
4
5 missed that function when i went looking for it.  again, the right way:
6
7 Index: linux/net/atm/lec.c
8 ===================================================================
9 RCS file: /home/chas/CVSROOT/linux/net/atm/lec.c,v
10 retrieving revision 1.1
11 retrieving revision 1.7
12 diff -u -d -b -w -r1.1 -r1.7
13 --- linux/net/atm/lec.c 20 Feb 2003 13:46:30 -0000      1.1
14 +++ linux/net/atm/lec.c 24 Feb 2003 13:34:43 -0000      1.7
15 @@ -711,7 +705,7 @@
16                          lec_arp_check_empties(priv, vcc, skb);
17                  }
18                  skb->dev = dev;
19 -                skb->data += 2; /* skip lec_id */
20 +                skb_pull(skb, 2); /* skip lec_id */
21  #ifdef CONFIG_TR
22                  if (priv->is_trdev) skb->protocol = tr_type_trans(skb, dev);
23                  else
24 -
25 To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
26 the body of a message to majordomo@vger.kernel.org
27 More majordomo info at  http://vger.kernel.org/majordomo-info.html
28 Please read the FAQ at  http://www.tux.org/lkml/
This page took 0.031902 seconds and 3 git commands to generate.