On 2012-06-08 07:21, Peter Lothberg wrote:
On 06/07/2012 02:26 AM, Mark Benson wrote:
It's a good idea, but I'm not sure it can be done. We need to change
the MAC address on the interface...can that be done outside the kernel?
This should be possible, OSI-IP requred this function to, but in
addition to that you need to get the MAC-level multicast packets in
both directions.
Changing the MAC address outside of the kernel? Depends on the kernel. Linux have an API
to do this. Some other Unixes does not. In fact, some Unixes have no capabilities for
doing so even in the kernel, although if your code is in the kernel you can definitely do
such a thing yourself. Problem is how to interface it to userland...
(If I remember right, there is an ioctl() to do it in Linux... You do need to be root,
obviously...)
Johnny
Show replies by date