version 1.1, 2004/05/20 22:29:02 |
version 1.2, 2004/05/20 23:12:33 |
|
|
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
|
|
|
#include <sys/cdefs.h> |
#if defined(LIBC_SCCS) && !defined(lint) |
#if defined(LIBC_SCCS) && !defined(lint) |
|
#if 0 |
static const char rcsid[] = "Id: inet_cidr_pton.c,v 1.2.2.1.8.2 2004/03/17 00:29:46 marka Exp"; |
static const char rcsid[] = "Id: inet_cidr_pton.c,v 1.2.2.1.8.2 2004/03/17 00:29:46 marka Exp"; |
|
#else |
|
__RCSID("$NetBSD$"); |
|
#endif |
#endif |
#endif |
|
|
#include "port_before.h" |
#include "port_before.h" |
|
|
|
#include "namespace.h" |
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/socket.h> |
#include <sys/socket.h> |
#include <netinet/in.h> |
#include <netinet/in.h> |
Line 44 static const char rcsid[] = "Id: inet_ci |
|
Line 50 static const char rcsid[] = "Id: inet_ci |
|
# define SPRINTF(x) ((size_t)sprintf x) |
# define SPRINTF(x) ((size_t)sprintf x) |
#endif |
#endif |
|
|
|
#ifdef __weak_alias |
|
__weak_alias(inet_cidr_pton,_inet_cidr_pton) |
|
#endif |
|
|
static int inet_cidr_pton_ipv4 __P((const char *src, u_char *dst, |
static int inet_cidr_pton_ipv4 __P((const char *src, u_char *dst, |
int *bits, int ipv6)); |
int *bits, int ipv6)); |
static int inet_cidr_pton_ipv6 __P((const char *src, u_char *dst, |
static int inet_cidr_pton_ipv6 __P((const char *src, u_char *dst, |