netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ratheesh k <ratheesh.ksz@gmail.com>
To: netdev@vger.kernel.org
Subject: printk mac address --hangs
Date: Thu, 13 May 2010 10:46:28 +0530	[thread overview]
Message-ID: <AANLkTinyUkQXbwD1QNI4he5XR0EdUzMnpYKI6xd-vifP@mail.gmail.com> (raw)

/* 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

                 reply	other threads:[~2010-05-13  5:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTinyUkQXbwD1QNI4he5XR0EdUzMnpYKI6xd-vifP@mail.gmail.com \
    --to=ratheesh.ksz@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).