Not able to access the union variables
smorrey at gmail.com
Sat Nov 12 00:38:33 MST 2005
Your should forward this to programhq at googlegroups.com
They have a very lively discussion going on at the moment on a similar topic.
On 11/11/05, hari kumar <harikumar.83 at gmail.com> wrote:
> I am not able to access an union variables in the following header
> file (linux/skbuff.h) .
> given below are the details of the union variable
> struct tcphdr *th;
> struct udphdr *uh;
> struct icmphdr *icmph;
> struct igmphdr *igmph;
> struct iphdr *ipiph;
> struct spxhdr *spxh;
> unsigned char *raw;
> } h;
> filename : linux /skbuff.h
> structure name where the union is declared : struct sk_buff
> I am not able to access the th/uh/icmph etc pointer objects from
> the above union.
> I am working with this module in the KERNEL SPACE.
> It would be of great help to me, if you can give me some
> information on this regard. Any information or thoughts are welcome on
> the same.
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
More information about the PLUG