Magellan Linux

Contents of /tags/mkinitrd-6.1.5/busybox/include/inet_common.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 898 - (show annotations) (download)
Wed Aug 5 17:52:14 2009 UTC (14 years, 10 months ago) by niro
File MIME type: text/plain
File size: 823 byte(s)
tagged 'mkinitrd-6.1.5'
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>
5 *
6 * Heavily modified by Manuel Novoa III Mar 12, 2001
7 *
8 */
9
10 #include "platform.h"
11
12 /* hostfirst!=0 If we expect this to be a hostname,
13 try hostname database first
14 */
15 int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst) FAST_FUNC;
16
17 /* numeric: & 0x8000: "default" instead of "*",
18 * & 0x4000: host instead of net,
19 * & 0x0fff: don't resolve
20 */
21
22 int INET6_resolve(const char *name, struct sockaddr_in6 *sin6) FAST_FUNC;
23
24 /* These return malloced string */
25 char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask) FAST_FUNC;
26 char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric) FAST_FUNC;