Reading burned-in NIC MAC address from the user space.
Warner Losh
imp at bsdimp.com
Thu Mar 6 15:35:11 UTC 2014
On Mar 6, 2014, at 7:13 AM, clutton <clutton at zoho.com> wrote:
> Hi lists.
>
> I'm porting a GNU macchanger to the FreeBSD. Everything has almost done,
> except restoring the mac to the original one.
>
> The Linux users can exploit ioctl with SIOCETHTOOL pointing to a proper
> ifreq(ETHTOOL_GPERMADDR), I have no idea how to do this using FreeBSD,
> is it even possible?
I’d check the source for ifconfig.
ifconfig ep0 link 1:2:3:4:5:6
does the trick…
Warner
More information about the freebsd-hackers
mailing list