Skip to content

Use of deprecated inet_ntoa #13759

@opoplawski

Description

@opoplawski

Background information

inet_ntoa is deprecated and Fedora flags it as "Forbidden".

What version of Open MPI are you using? (e.g., v4.1.6, v5.0.1, git branch name and hash, etc.)

Current git main

Present in the following:

contrib/build-mca-comps-outside-of-tree/btl_tcp2_endpoint.c:        sprintf(src, "%s", inet_ntoa(inaddr.sin_addr));
contrib/build-mca-comps-outside-of-tree/btl_tcp2_endpoint.c:        sprintf(dst, "%s", inet_ntoa(inaddr.sin_addr));
opal/util/net.c:    return inet_ntoa(((struct sockaddr_in *) addr)->sin_addr);
opal/mca/btl/usnic/btl_usnic_module.c:                        module->linux_device_name, str, inet_ntoa(sin->sin_addr),
opal/mca/btl/tcp/btl_tcp_endpoint.c:    used += snprintf(&outmsg[used], DEBUG_LENGTH - used, "%s -", inet_ntoa(inaddr.sin_addr));
opal/mca/btl/tcp/btl_tcp_endpoint.c:    used += snprintf(&outmsg[used], DEBUG_LENGTH - used, " %s", inet_ntoa(inaddr.sin_addr));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions