how to interpret C statement?
Subsystems (2)
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
Easy. skb-cb used to keep struct tcp_skb_cb. Statement in your question do casting and return pointer to the structure.
Quoted 14 lines · linux lover
how to interpret following C statement?
#defineTCP_SKB_CB(__skb)((structtcp_skb_cb*)&((__skb)->cb[0]))
what is use oftcp_skb_cbstructure in kernel sourcetcp.h? howTCP_SKB_CB(skb)is translated in its definition? regards,linux_lover---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger