Re: [gentoo-portage-dev] [PATCH v2] Configure additional addresses on the lo interface for network-sandbox

2019-08-01 Thread Zac Medico
On 8/1/19 6:22 AM, Mike Gilbert wrote: > This works around some strange behavior in glibc's getaddrinfo() > implementation when the AI_ADDRCONFIG flag is set. > > For example: > > struct addrinfo *res, hints = { .ai_family = AF_INET, .ai_flags = > AI_ADDRCONFIG }; > getaddrinfo("localhost",

[gentoo-portage-dev] [PATCH v2] Configure additional addresses on the lo interface for network-sandbox

2019-08-01 Thread Mike Gilbert
This works around some strange behavior in glibc's getaddrinfo() implementation when the AI_ADDRCONFIG flag is set. For example: struct addrinfo *res, hints = { .ai_family = AF_INET, .ai_flags = AI_ADDRCONFIG }; getaddrinfo("localhost", NULL, , ); This returns no results if there are no