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

gethostbyaddr deprecated #12

Open
mikelolasagasti opened this issue Nov 20, 2022 · 0 comments
Open

gethostbyaddr deprecated #12

mikelolasagasti opened this issue Nov 20, 2022 · 0 comments

Comments

@mikelolasagasti
Copy link
Contributor

rpmlint reports the following:

The gethostbyname*() and gethostbyaddr*() functions are deprecated as among other things they are not IPv6 ready. Applications should use getaddrinfo(3) and getnameinfo(3) instead. Please work with upstream to port the application to the modern interface.

$ grep  gethostbyaddr *
cv.c:					if ((ht = gethostbyaddr((char *)&addr, sizeof(addr), AF_INET)) == NULL)
mt.c:		struct hostent *he = gethostbyaddr(&(sai -> sin_addr.s_addr), sizeof(sai -> sin_addr.s_addr), AF_INET);

More info https://udrepper.livejournal.com/16116.html

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

No branches or pull requests

1 participant