Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libdtrace/common/dt_printf.c
Show All 38 Lines | |||||
#include <assert.h> | #include <assert.h> | ||||
#include <ctype.h> | #include <ctype.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <limits.h> | #include <limits.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <netdb.h> | #include <netdb.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <arpa/inet.h> | #include <arpa/inet.h> | ||||
#include <arpa/nameser.h> | #include <sys/byteorder.h> | ||||
#include <dt_printf.h> | #include <dt_printf.h> | ||||
#include <dt_string.h> | #include <dt_string.h> | ||||
#include <dt_impl.h> | #include <dt_impl.h> | ||||
#ifndef NS_IN6ADDRSZ | |||||
#define NS_IN6ADDRSZ 16 | |||||
#endif | |||||
#ifndef NS_INADDRSZ | |||||
#define NS_INADDRSZ 4 | |||||
#endif | |||||
/*ARGSUSED*/ | /*ARGSUSED*/ | ||||
static int | static int | ||||
pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) | pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) | ||||
{ | { | ||||
return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); | return (dt_node_is_pointer(dnp) || dt_node_is_integer(dnp)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,024 Lines • Show Last 20 Lines |