1 /* vi: set sw=4 ts=4: */
3 * stolen from net-tools-1.59 and stripped down for busybox by
4 * Erik Andersen <andersen@codepoet.org>
6 * Heavily modified by Manuel Novoa III Mar 12, 2001
12 /* hostfirst!=0 If we expect this to be a hostname,
13 try hostname database first
15 extern int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst);
17 /* numeric: & 0x8000: "default" instead of "*",
18 * & 0x4000: host instead of net,
19 * & 0x0fff: don't resolve
21 extern int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in,
22 int numeric, unsigned int netmask);
24 extern int INET6_resolve(const char *name, struct sockaddr_in6 *sin6);
25 extern int INET6_rresolve(char *name, size_t len, struct sockaddr_in6 *sin6, int numeric);