Hi to all in this list,

i've a programming problem with the struct sk_buff.
I want to get the values of source and dest if the packet
is of type 0x6 means tcp.

My code looks like :

unsigned int x;
if (skb->nh.iph->saddr==6)
     x=skb->h.th->source;

It seems that i get the first values if the union nh
and this is of cource the wrong value and i don't know why?

Please help!

Regards
Andreas Rennen


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to