
On Saturday 03 December 2011 10:06:58 Matthias Weisser wrote:
Am 29.11.2011 19:39, schrieb Mike Frysinger:
then when tap_set_hwaddr() gets called, if the MAC is different, it will attempt to set the MAC to what the user requested. if they don't have permission, then the code can yell at them. but if they do, this should work imo. this gets us the best of all worlds i think.
I looked into that. It seems that you have to shut down the interface, change the MAC and up the interface again. I tried now to do this using some ioctls but didn't got it working as user or as root. So I give up at this point. Should I submit the V2 patch without setting MAC function anyway or will it not be applied then?
add a comment to the set_hwaddr that you tried XXX but couldn't get it to work, so for now it's disabled until someone can post a working solution -mike