Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 232751

Summary: sys-devel/distccd-2.18.3-r10 doesn't listen on network interfaces which aren't named ethX
Product: Gentoo Linux Reporter: Guillaume Hilt <postmaster>
Component: Current packagesAssignee: MATSUU Takuto (RETIRED) <matsuu>
Status: RESOLVED INVALID    
Severity: normal CC: betelgeuse, hp-cluster
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Guillaume Hilt 2008-07-23 13:51:18 UTC
My server has 2 network interfaces, eth0 and dummy0.
eth0 is the interface used with the iscsi server and dummy0 is used for the network output with the rest of the world.

If I configure distcc to listen on eth0, with DISTCCD_OPTS="${DISTCCD_OPTS} --listen 192.168.0.1", it doesn't want to start and I get the following error :
distccd[23650] (dcc_socket_listen) ERROR: listen address "192.168.0.1" is not a valid IPv4 address.

192.168.0.1 is corresponding to my dummy0 interface.
If i'm using eth0 ip it's working.

Sounds like it's related to its name but i'm not sure about it.

Reproducible: Always

Steps to Reproduce:
1. Configure distcc to listen on the ip of a network interface having a name different than ethX
2. Start distcc

Actual Results:  
distcc refuse to start.

Expected Results:  
distcc should have been started.
Comment 1 Guillaume Hilt 2008-07-23 15:26:36 UTC
It's not related to the network interface name.

I found this in src/srv.net (line 190) :

if (!inet_aton(listen_addr, &sock.sin_addr)) {
    rs_log_error("listen address \"%s\" is not a valid IPv4 address", listen_addr);
    return EXIT_BAD_ARGUMENTS;
}

Here's my real ip addresses :

zoolook ~ # ifconfig
dummy0    Link encap:Ethernet  
          inet addr:87.98.139.X  Bcast:0.0.0.0  Mask:255.255.255.255

eth0      Link encap:Ethernet  
          inet addr:91.121.194.X  Bcast:91.121.194.255  Mask:255.255.255.0
Comment 2 MATSUU Takuto (RETIRED) gentoo-dev 2008-10-19 15:30:58 UTC
hmm, i cannot reproduce.

btw, Could you try it on distcc-3.0?
Comment 3 Guillaume Hilt 2008-10-19 15:36:45 UTC
(In reply to comment #2)
> hmm, i cannot reproduce.
> 
> btw, Could you try it on distcc-3.0?
> 

Sorry i don't have that server anymore.
I'll look if i can find another one in this case to test it.
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2009-03-19 17:40:36 UTC
if you still have the issue, please reopen this bug.