[Vm-dev] Finding ip address for eth0?

Andreas Raab andreas.raab at gmx.de
Wed Aug 26 21:21:53 UTC 2009


Bert Freudenberg wrote:
> On 26.08.2009, at 22:27, Andreas Raab wrote:
>> Bert Freudenberg wrote:
>>> What got implemented though is a primitive to list all interfaces 
>>> that are available. Hosts do not have IP addresses, interfaces do. 
>>> And since hosts typically have multiple interfaces, it's not really 
>>> up to the VM to pick one, but the application.
>>
>> What's the primitive? How do I use it? Any examples?
> 
> There are examples and tests in the image ... it's part of the IPv6 
> work, which did not only add IPv6 support but generalized the Socket 
> support. Not sure exactly which method it would be.

Bummer. I thought you were saying that there was "one" primitive that 
would do it, not two dozen ;-) Unfortunately, adding the whole IPv6 
stuff is not an option at this point; we're too close to release for 
that. I think I'll go through the code and try to see how to fold this 
into an isolated function - does it work in the OLPC image?

Cheers,
   - Andreas


More information about the Vm-dev mailing list