lkml.org 
[lkml]   [2000]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Setting the source MAC address in sent packets
On Thu, Mar 30, 2000, Martijn van Oosterhout wrote:
> How can I set this (I want bridge IPX packets between
> two networks *without* changing any of the headers at
> all) from a userspace program?

You can create a SOCK_PACKET type socket (and not SOCK_RAW because in
SOCK_RAW mode the kernel creates the ethernet header automatically), and
then build yourself the ethernet header and the whole ethernet frame. I
have an example programe if you need one.

Regards,

--
MaXX

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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