[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTinyUkQXbwD1QNI4he5XR0EdUzMnpYKI6xd-vifP@mail.gmail.com>
Date: Thu, 13 May 2010 10:46:28 +0530
From: ratheesh k <ratheesh.ksz@...il.com>
To: netdev@...r.kernel.org
Subject: printk mac address --hangs
/* 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
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists