b2bed465e8
I didn't know getnameinfo(3) existed, so I implemented it, or something similar to it called inet_sockaddr2str(). Let's use the standard API. Link: <https://inbox.sourceware.org/libc-alpha/0f25d60f-f183-b518-b6c1-6d46aa63ee57@gmail.com/T/> Link: <https://stackoverflow.com/a/42190913/6872717> Link: <https://github.com/shadow-maint/shadow/pull/617> Link: <https://software.codidact.com/posts/287748> Cc: Zack Weinberg <zack@owlfolio.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>