linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* strcut casts unsigned long
@ 2010-08-13  2:17 hong zhang
  2010-08-13  6:44 ` ratheesh k
  0 siblings, 1 reply; 5+ messages in thread
From: hong zhang @ 2010-08-13  2:17 UTC (permalink / raw)
  To: linux-c-programming

List,

I have C question on skbuff.h.
skb->_skb_dst is defined as unsigned long and dst_entry is struct.

Why strct dst_entry casts unsigned long skb->_skb_dst?

See below

static inline struct dst_entry *skb_dst(const struct sk_buff *skb)
{
	return (struct dst_entry *)skb->_skb_dst;
}

Appreciate any answer!

--henry


      

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-13 21:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-13  2:17 strcut casts unsigned long hong zhang
2010-08-13  6:44 ` ratheesh k
2010-08-13 13:23   ` Javier Martinez Canillas
2010-08-13 21:25   ` hong zhang
2010-08-13 21:49     ` Javier Martinez Canillas

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).