Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/* Hijack vaguely related config option */
#if ENABLE_VERBOSE_RESOLUTION_ERRORS
const char *s = "INET";
+# ifdef AF_PACKET
if (domain == AF_PACKET) s = "PACKET";
+# endif
+# ifdef AF_NETLINK
if (domain == AF_NETLINK) s = "NETLINK";
+# endif
IF_FEATURE_IPV6(if (domain == AF_INET6) s = "INET6";)
bb_perror_msg_and_die("socket(AF_%s,%d,%d)", s, type, protocol);
#else
config VERBOSE_RESOLUTION_ERRORS
bool "Verbose resolution errors"
default n
- depends on PLATFORM_LINUX #because of xsocket() in libbb/xfuncs_prinf.c
help
Enable if you are not satisfied with simplistic
"can't resolve 'hostname.com'" and want to know more.