From: "Josef E. Galea" <josefeg@euroweb.net.mt>
To: linux-kernel@vger.kernel.org
Subject: Socket buffers.
Date: Thu, 25 Nov 2004 14:41:11 +0100 [thread overview]
Message-ID: <41A5E0F7.5040704@euroweb.net.mt> (raw)
Hi,
I am sending and receiving data using socket buffers. On the receiving
end, I have registered a packet handler using dev_add_pack() and am only
processing packets of type PACKET_HOST. Now I want to read the source
MAC address of the incoming packets, and I am using memcpy(src,
(skb->mac.ethernet + 6), 6). However, when I try to print the value of
src, I am getting garbage data. Can anyone help?
Thanks
Josef E. Galea
next reply other threads:[~2004-11-27 6:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-25 13:41 Josef E. Galea [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-10-28 21:11 Josef E. Galea
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=41A5E0F7.5040704@euroweb.net.mt \
--to=josefeg@euroweb.net.mt \
--cc=linux-kernel@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
Powered by JetHome