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.
5 missed that function when i went looking for it. again, the right way:
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
16 lec_arp_check_empties(priv, vcc, skb);
19 - skb->data += 2; /* skip lec_id */
20 + skb_pull(skb, 2); /* skip lec_id */
22 if (priv->is_trdev) skb->protocol = tr_type_trans(skb, dev);
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/