Re: Setting the source MAC address in sent packets

From: Michel Kaempf (maxx@via.ecp.fr)
Date: Wed Mar 29 2000 - 10:20:22 EST


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/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:24 EST