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

DCGM cannot listen on ipv6 address #150

Open
Pingan2017 opened this issue Feb 5, 2024 · 0 comments · May be fixed by #178
Open

DCGM cannot listen on ipv6 address #150

Pingan2017 opened this issue Feb 5, 2024 · 0 comments · May be fixed by #178

Comments

@Pingan2017
Copy link

DCGM cannot listen on v6 address.

    if (m_tcpParameters.value().bindIPAddress.size() > 0)
    {
        /* Convert mSocketPath to a number in network byte order */
        if (!inet_aton(m_tcpParameters.value().bindIPAddress.c_str(), &listenAddr.sin_addr))
        {
            DCGM_LOG_ERROR << "Unable to convert \"" << m_tcpParameters.value().bindIPAddress
                           << "\" to a network address.";
            close(m_tcpListenSocketFd);
            m_tcpListenSocketFd = -1;
            return DCGM_ST_GENERIC_ERROR;
        }
    }

inet_aton cannot parse IPv6 Address, we need use inet_pton

@johnsushant johnsushant linked a pull request Jul 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant