discuss-gnuradio
[Top][All Lists]
Advanced

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

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


From: Feng Andrew Ge
Subject: [Discuss-gnuradio] Re: tunnel.py MAC address
Date: Fri, 25 Mar 2011 13:03:32 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8

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, address@hidden wrote:
Message: 11
Date: Thu, 24 Mar 2011 06:45:51 -0700 (PDT)
From: David Barton<address@hidden>
Subject: [Discuss-gnuradio] tunnel.py MAC address
To:address@hidden
Message-ID:<address@hidden>
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





reply via email to

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