* Socket buffers
@ 2004-10-28 21:11 Josef E. Galea
0 siblings, 0 replies; 2+ messages in thread
From: Josef E. Galea @ 2004-10-28 21:11 UTC (permalink / raw)
To: linux-kernel
Hi,
Can someone point me to a good tutorial / site / sample code that
explains how to use the socket buffer structure (sk_buff) to send and
receive ethernet packets.
Thanks
Josef Galea
josefeg@euroweb.net.mt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Socket buffers.
@ 2004-11-25 13:41 Josef E. Galea
0 siblings, 0 replies; 2+ messages in thread
From: Josef E. Galea @ 2004-11-25 13:41 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-11-27 6:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-28 21:11 Socket buffers Josef E. Galea
-- strict thread matches above, loose matches on Subject: below --
2004-11-25 13:41 Josef E. Galea
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.