Changes for kernel and Busybox
[tomato.git] / release / src / router / busybox / include / inet_common.h
blob4638aa9ebc51a54c701eea97add025fa6b2f5a99
1 /* vi: set sw=4 ts=4: */
2 /*
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
8 */
9 #ifndef INET_COMMON_H
10 #define INET_COMMON_H 1
12 PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
14 /* hostfirst!=0 If we expect this to be a hostname,
15 try hostname database first
17 int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) FAST_FUNC;
19 /* numeric: & 0x8000: "default" instead of "*",
20 * & 0x4000: host instead of net,
21 * & 0x0fff: don't resolve
24 int INET6_resolve(const char *name, struct sockaddr_in6 *sin6) FAST_FUNC;
26 /* These return malloced string */
27 char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) FAST_FUNC;
28 char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric) FAST_FUNC;
30 POP_SAVED_FUNCTION_VISIBILITY
32 #endif