* how to interpret C statement?
@ 2004-06-08 15:44 linux lover
2004-06-08 20:41 ` Vladimir Kondratiev
0 siblings, 1 reply; 2+ messages in thread
From: linux lover @ 2004-06-08 15:44 UTC (permalink / raw)
To: netdev
[-- Attachment #1: Type: text/plain, Size: 351 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 511 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to interpret C statement?
2004-06-08 15:44 how to interpret C statement? linux lover
@ 2004-06-08 20:41 ` Vladimir Kondratiev
0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Kondratiev @ 2004-06-08 20:41 UTC (permalink / raw)
To: netdev
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-08 20:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-08 15:44 how to interpret C statement? linux lover
2004-06-08 20:41 ` Vladimir Kondratiev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).