discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] tunnel.py MAC address


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] tunnel.py MAC address
Date: Fri, 25 Mar 2011 12:17:18 -0400

On Thu, Mar 24, 2011 at 9:45 AM, David Barton <address@hidden> wrote:
When I run tunnel.py and configure the grX interface IP address I noticed using ifconfig that a seemingly random MAC address is assigned to the gr interface. Does ayone know if there is any logic to how the address is created?
 
Thanks,
Dave


tunnel.py uses the TUN/TAP interface. From my understanding, the kernel autogenerates a MAC address when you create a new tun/tap device. I don't know the actual internals of how it is generated though.

You should be able to change the address using the SIOCSIFHWADDR option for ioctl(), though I haven't tried this myself on the device.

Tom
  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]