[lkml]   [2001]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Problems with corruption sending packets from a module

> In case someone is reading the archives and has a similar problem, this
> appears to be the cause of the trouble. If I do
> skb->data += sizeof(struct ethhdr);
> then it's fine.

It is not fine at all... You are not allowed to change skb->data,
skb->len etc.

> I guess I ought to be using skb_reserve really

You guess right: skb_reserve(), skb_put() and other functions
provided by skbuff.h. But not to touch pointers directly,
they have dependancies, which are known only to skbuff.[hc].

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:57    [W:0.037 / U:1.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site