[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about skbuff
Hi,
Can we have a fragment of the real code, this has compilation problems
AFAICS.
> struct iphdr * ip (*pskb)->nh.iph;
Missing `='?
> struct tcphdr * tcph = (void *) ip + ip->ihl * 4;
Don't think you can add onto a void * since void has no size.
> unsigned data * = (unsigned char *)tcph + (tcph->doff * 4)
> .
* after data looks wrong. No semi-colon but period instead on next
line.
If you've a simple mistake in your code we need to see the actual code
to spot it.
Cheers,
Ralph.
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/