Giter Site home page Giter Site logo

Comments (5)

narategithub avatar narategithub commented on August 17, 2024 1

@Snell1224 Thank you for reporting this. There is indeed a bug in the IPv6 support in the case of no listening address given. In the mean time, you can work around the issue by specifying '::' as host name and it will listen to any address on both IPv4 and IPv6. For example:

# xprt option in CLI
$ ldmsd -x sock:411:::

or

# in config file
listen port=411 xprt=sock host=::

from ovis.

tom95858 avatar tom95858 commented on August 17, 2024

@narategithub is this still an issue or can we close this?

from ovis.

narategithub avatar narategithub commented on August 17, 2024

@tom95858 There is a bug in ldms_xprt_listen_by_name(x, host, ...). If host is NULL, the default listening address is '0.0.0.0'. I think I missed this when I added IPv6 support. Here's where the issue is:

ovis/ldms/src/core/ldms_xprt.c

Lines 4196 to 4207 in a2bdf82

long ptmp;
ptmp = atol(port_no);
if (ptmp < 1 || ptmp > USHRT_MAX) {
return EINVAL;
}
unsigned short port = ptmp;
memset(&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
sin.sin_addr.s_addr = 0;
sin.sin_port = htons(port);
rc = ldms_xprt_listen(x, (struct sockaddr *)&sin, sizeof(sin),
cb, cb_arg);

I'll post a patch today and will let you know.

from ovis.

narategithub avatar narategithub commented on August 17, 2024

@Snell1224 the pull request that addressed this issue has just been merged. Could you please see if the issue is resolved?

from ovis.

Snell1224 avatar Snell1224 commented on August 17, 2024

@narategithub Yes, the issue has been resolved. Thank you for the information and fixing this!

from ovis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.