mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Problems with corruption sending packets from a module
       [not found] <20010820170424.A713@stu163.keble.ox.ac.uk>
@ 2001-08-20 22:57 ` Alexey Kuznetsov
  2001-08-21 18:47   ` Ian Lynagh
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Kuznetsov @ 2001-08-20 22:57 UTC (permalink / raw)
  To: Ian Lynagh; +Cc: linux-kernel

Hello!

> 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].

Alexey

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

* Re: Problems with corruption sending packets from a module
  2001-08-20 22:57 ` Problems with corruption sending packets from a module Alexey Kuznetsov
@ 2001-08-21 18:47   ` Ian Lynagh
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lynagh @ 2001-08-21 18:47 UTC (permalink / raw)
  To: Alexey Kuznetsov; +Cc: linux-kernel

On Tue, Aug 21, 2001 at 02:57:08AM +0400, Alexey Kuznetsov wrote:
> Hello!
> 
> > 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.

Sorry, yes, I meant "it works" which isn't quite the same thing  :-)


Ian, struggling against a lack of decent documentation but slowly
getting there, I think!


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

end of thread, other threads:[~2001-08-21 18:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20010820170424.A713@stu163.keble.ox.ac.uk>
2001-08-20 22:57 ` Problems with corruption sending packets from a module Alexey Kuznetsov
2001-08-21 18:47   ` Ian Lynagh

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

all inboxes | Powered by JetHome®