Friday, March 25, 2011

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

Here is what you need to do

SIOCSIFHWADDR = 0x8924
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
ioctl(s, SIOCSIFHWADDR, struct.pack("16sH6s", ifname,
socket.AF_UNIX, hwaddr))


Andrew


On 03/24/2011 12:00 PM, discuss-gnuradio-request@gnu.org wrote:
> Message: 11
> Date: Thu, 24 Mar 2011 06:45:51 -0700 (PDT)
> From: David Barton<david.barton33@yahoo.com>
> Subject: [Discuss-gnuradio] tunnel.py MAC address
> To:discuss-gnuradio@gnu.org
> Message-ID:<230441.44013.qm@web120209.mail.ne1.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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
>


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment