version 1.46, 2014/08/14 12:55:50 |
version 1.47, 2015/01/16 06:40:10 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
|
|
#include <sys/param.h> |
#include <sys/types.h> |
#include <sys/socket.h> |
#include <sys/socket.h> |
#include <sys/socketvar.h> |
#include <sys/socketvar.h> |
#include <sys/ioctl.h> |
#include <sys/ioctl.h> |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <limits.h> |
#include "netstat.h" |
#include "netstat.h" |
|
|
struct socket sockb; |
struct socket sockb; |
|
|
char *cp; |
char *cp; |
static char line[NI_MAXHOST]; |
static char line[NI_MAXHOST]; |
struct hostent *hp; |
struct hostent *hp; |
static char domain[MAXHOSTNAMELEN]; |
static char domain[HOST_NAME_MAX+1]; |
static int first = 1; |
static int first = 1; |
char hbuf[NI_MAXHOST]; |
char hbuf[NI_MAXHOST]; |
struct sockaddr_in6 sin6; |
struct sockaddr_in6 sin6; |