Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse_interface() fails on "eth0" with Ubuntu 14.04 #34

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 3 comments
Open

parse_interface() fails on "eth0" with Ubuntu 14.04 #34

GoogleCodeExporter opened this issue Mar 15, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

if.c, line 520:

const int eai = getaddrinfo (ifname, NULL, &hints, &result);

On Ubuntu 14.04 under mysterious circumstances it returns -3 (EAI_AGAIN) with 
ifname = "eth0". DHCP was switched off, if it matters.
I suggest to add "case EAI_AGAIN:" under "case EAI_NONAME:":

#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
        case EAI_NODATA:
#endif
        case EAI_AGAIN:
        case EAI_NONAME:
            check_ifname = TRUE;
            break;

After this fix, ZeroMQ successfully connects to epgm://eth0;239.192.1.1.

Original issue reported on code.google.com by [email protected] on 4 Apr 2014 at 1:16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant