[Vm-dev] [commit][3485] update resolver local address discovery; it seem gethostbyaddr has been compromised by OS changes recently.

Ben Coman btc at openinworld.com
Fri Nov 6 12:17:32 UTC 2015


On Fri, Nov 6, 2015 at 4:57 AM, tim Rowledge <tim at rowledge.org> wrote:
>
>
>> On 05-11-2015, at 12:53 PM, commits at squeakvm.org wrote:
>>
>>
>> Revision: 3485
>> Author:   rowledge
>> Date:     2015-11-05 12:53:44 -0800 (Thu, 05 Nov 2015)
>> Log Message:
>> -----------
>> update resolver local address discovery; it seem gethostbyaddr has been compromised by OS changes recently. Change to using ifgetaddrs and scanning for eth0 or wlan0 addresses, which looks like a good change on Raspbian at least.
>
> I’m very much a guess-and-hope guy when it comes to sockets, so please offer any improvements you can think of.
>

I'm not sure the impact but these might be exceptions...
* http://free-electrons.com/blog/no-eth0/
* http://www.cyberciti.biz/faq/howto-linux-rename-ethernet-devices-named-using-udev/
* https://major.io/2015/08/21/understanding-systemds-predictable-network-device-names/

cheers -ben


More information about the Vm-dev mailing list