source: MondoRescue/branches/2.2.9/mindi-busybox/include/inet_common.h@ 2142

Last change on this file since 2142 was 1765, checked in by Bruno Cornec, 16 years ago

Update to busybox 1.7.2

File size: 783 bytes
Line 
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 */
15int INET_resolve(const char *name, struct sockaddr_in *s_in, int hostfirst);
16
17/* numeric: & 0x8000: "default" instead of "*",
18 * & 0x4000: host instead of net,
19 * & 0x0fff: don't resolve
20 */
21
22int INET6_resolve(const char *name, struct sockaddr_in6 *sin6);
23
24/* These return malloced string */
25char *INET_rresolve(struct sockaddr_in *s_in, int numeric, uint32_t netmask);
26char *INET6_rresolve(struct sockaddr_in6 *sin6, int numeric);
Note: See TracBrowser for help on using the repository browser.