[Lxc-users] SIOCGIFNAME

Papp Tamas tompos at martos.bme.hu
Wed May 30 07:35:36 UTC 2012


On 05/30/2012 04:28 AM, Daniel Lezcano wrote:
>
> On 05/29/2012 10:10 PM, Papp Tamas wrote:
>> On 05/29/2012 07:29 PM, Daniel Lezcano wrote:
>>>
>>> On 05/29/2012 03:48 PM, Papp Tamas wrote:
>>>> hi All,
>>>>
>>>>
>>>> This doesn't work now:
>>>>
>>>> ioctl(3, SIOCGIFNAME, {ifr_index=0, ifr_name=???}) = -1 ENODEV (No 
>>>> such
>>>> device)
>>>>
>>>>
>>>> Is there any way to make it work?
>>>
>>> Yep, the index are not virtualized. So ifr_index=0 is for the 
>>> loopback in the init network namespace.
>>
>> So there is no way?
>
> What do you want to do exactly ?


There is a license server and the license depends on the MAC address 
what is determined in this way. Of course I cannot modify the code or 
replace it with alternatives.

Thanks,
tamas




More information about the lxc-users mailing list