FreeBSD kernel libkern code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/systm.h>
#include <netinet/in.h>
Go to the source code of this file.
Macros | |
#define | strchr index |
#define | NS_INADDRSZ 4 |
#define | NS_IN6ADDRSZ 16 |
#define | NS_INT16SZ 2 |
Functions | |
__FBSDID ("$BSDSUniX$") | |
static int | inet_pton4 (const char *src, u_char *dst) |
static int | inet_pton6 (const char *src, u_char *dst) |
int | inet_pton (int af, const char *src, void *dst) |
#define NS_IN6ADDRSZ 16 |
Referenced by inet_pton6().
#define NS_INADDRSZ 4 |
Referenced by inet_pton4(), and inet_pton6().
#define NS_INT16SZ 2 |
Referenced by inet_pton6().
#define strchr index |
Definition at line 31 of file inet_pton.c.
Referenced by inet_pton4(), and inet_pton6().
__FBSDID | ( | "$BSDSUniX$" | ) |
int inet_pton | ( | int | af, |
const char * | src, | ||
void * | dst | ||
) |
Definition at line 54 of file inet_pton.c.
References inet_pton4(), and inet_pton6().
|
static |
Definition at line 78 of file inet_pton.c.
References NS_INADDRSZ, and strchr.
Referenced by inet_pton(), and inet_pton6().
|
static |
Definition at line 132 of file inet_pton.c.
References inet_pton4(), memset(), NS_IN6ADDRSZ, NS_INADDRSZ, NS_INT16SZ, and strchr.
Referenced by inet_pton().