8d2aee6bc8
libbind development was transferred to the NetBSD project at http://wiki.netbsd.org/individual-software-releases/netresolv/ There isn't an official release yet, but they provide a set of patches against the latest libbind release. * Remove all files we don't use * Merge the changes to the remaining files * Add some new files we need * Move getifaddrs implementation to libnetwork (instead of libbnetapi) so it can be used by netresolv. Fixes #8293 : netresolv uses getifaddrs to determine if there is a local IPv6 address. If there is not, it will not return AAAA records.
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/*
|
|
* Copyright 2009-2012 Haiku, Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _INET_H_
|
|
#define _INET_H_
|
|
|
|
|
|
#include <netinet/in.h>
|
|
#include <sys/cdefs.h>
|
|
#include <sys/param.h>
|
|
#include <sys/types.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
in_addr_t inet_addr(const char* addressString);
|
|
int inet_aton(const char* addressString, struct in_addr* address);
|
|
char* inet_cidr_ntop(int family, const void* source, int bits,
|
|
char* dest, size_t destSize);
|
|
int inet_cidr_pton(int family, const char* sourceString, void* dest,
|
|
int* _bits);
|
|
in_addr_t inet_lnaof(struct in_addr address);
|
|
struct in_addr inet_makeaddr(in_addr_t net, in_addr_t host);
|
|
char* inet_net_ntop(int family, const void* source, int bits,
|
|
char* dest, size_t destSize);
|
|
int inet_net_pton(int family, const char* sourceString, void* dest,
|
|
size_t destSize);
|
|
char* inet_neta(u_long source, char* dest, size_t destSize);
|
|
in_addr_t inet_netof(struct in_addr address);
|
|
in_addr_t inet_network(const char* addressString);
|
|
char* inet_ntoa(struct in_addr address);
|
|
const char* inet_ntop(int family, const void* source, char* dest,
|
|
socklen_t destSize);
|
|
int inet_pton(int family, const char* sourceString, void* dest);
|
|
u_int inet_nsap_addr(const char* sourceString, u_char* dest,
|
|
int destSize);
|
|
char* inet_nsap_ntoa(int sourceLength, const u_char* source,
|
|
char* dest);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _INET_H_ */
|