netdev
[Top] [All Lists]

Re: how to interpret C statement?

To: netdev@xxxxxxxxxxx
Subject: Re: how to interpret C statement?
From: Vladimir Kondratiev <vkondra@xxxxxxx>
Date: Tue, 8 Jun 2004 23:41:06 +0300
In-reply-to: <20040608154412.14868.qmail@web52208.mail.yahoo.com>
References: <20040608154412.14868.qmail@web52208.mail.yahoo.com>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.6.2
Easy. skb-cb used to keep struct tcp_skb_cb. Statement in your question do 
casting and return pointer to the structure.

On Tuesday 08 June 2004 18:44, linux lover wrote:
> how to interpret following C statement?
> #define TCP_SKB_CB(__skb)       ((struct tcp_skb_cb *)&((__skb)->cb[0]))
> what is use of tcp_skb_cb structure in kernel source tcp.h? how
> TCP_SKB_CB(skb) is translated in its definition? regards,
> linux_lover
>
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Friends.  Fun. Try the all-new Yahoo! Messenger

<Prev in Thread] Current Thread [Next in Thread>