lkml.org 
[lkml]   [2004]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectSocket buffers.
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.033 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site