pcp
[Top] [All Lists]

pcp updates: INADDR_LOOPBACK for ipv6

To: PCP Mailing List <pcp@xxxxxxxxxxx>
Subject: pcp updates: INADDR_LOOPBACK for ipv6
From: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu, 03 Sep 2015 12:13:39 -0400
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
Nathan spotted this one:

# netstat -tulnp | grep pmcd
tcp        0      0 0.0.0.0:44321           0.0.0.0:*               LISTEN      
21341/pmcd
tcp6       0      0 :::44321                :::*                    LISTEN      
21341/pmcd

# vi /etc/sysconfig/pmcd
(uncomment PMCD_LOCAL=1 )

# service pmcd restart
Redirecting to /bin/systemctl restart  pmcd.service

# netstat -tulnp | grep pmcd
tcp        0      0 127.0.0.1:44321         0.0.0.0:*               LISTEN      
6595/pmcd
tcp6       0      0 :::44321                :::*                    LISTEN      
6595/pmcd


The listening address of ipv6 with PMCD_LOCAL=1 should be ::1:44321. OpenRequestSocket() was not setting up the listening address properly. Fixed by this commit which has been pushed.

Dave
----------------------------------------------------
Changes committed to git://git.pcp.io/pcp.git master

Dave Brolley (1):
      OpenRequestSocket(): Initialize INADDR_LOOPBACK properly for ipv6.

 src/libpcp/src/auxconnect.c |    4 +++-
 src/libpcp/src/auxserver.c  |   32 +++++++++++++++++++++-----------
 2 files changed, 24 insertions(+), 12 deletions(-)

<Prev in Thread] Current Thread [Next in Thread>
  • pcp updates: INADDR_LOOPBACK for ipv6, Dave Brolley <=