* printk mac address --hangs
@ 2010-05-13 5:16 ratheesh k
0 siblings, 0 replies; only message in thread
From: ratheesh k @ 2010-05-13 5:16 UTC (permalink / raw)
To: netdev
/* code snippent */
char src[ETH_ALEN+2];
char dst[ETH_ALEN+2];
eth_header = eth_hdr(skb);
memcpy(src , eth_header->h_source , ETH_ALEN );
memcpy(dst , eth_header->h_dest , ETH_ALEN );
Linux crashes . But if comment out memcpy lines . It works . What is
the problem here ?
How can i printk both source mac and dest mac address ?
Thanks,
Ratheesh
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-13 5:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 5:16 printk mac address --hangs ratheesh k
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).