version 1.112, 2009/11/05 20:50:14 |
version 1.113, 2010/06/29 03:09:29 |
|
|
struct tcpcb tcpcb; |
struct tcpcb tcpcb; |
struct socket sockb; |
struct socket sockb; |
|
|
static void protopr0(u_long, char *, int); |
|
|
|
char *inetname(struct in_addr *); |
char *inetname(struct in_addr *); |
void inetprint(struct in_addr *, in_port_t, char *, int); |
void inetprint(struct in_addr *, in_port_t, char *, int); |
char *inet6name(struct in6_addr *); |
char *inet6name(struct in6_addr *); |
|
|
* -a (all) flag is specified. |
* -a (all) flag is specified. |
*/ |
*/ |
void |
void |
protopr(u_long off, char *name) |
protopr(u_long off, char *name, int af) |
{ |
|
protopr0(off, name, AF_INET); |
|
} |
|
|
|
void |
|
ip6protopr(u_long off, char *name) |
|
{ |
|
protopr0(off, name, AF_INET6); |
|
} |
|
|
|
static void |
|
protopr0(u_long off, char *name, int af) |
|
{ |
{ |
struct inpcbtable table; |
struct inpcbtable table; |
struct inpcb *head, *next, *prev; |
struct inpcb *head, *next, *prev; |