version 1.65, 2007/03/23 15:37:57 |
version 1.66, 2007/06/04 12:20:24 |
|
|
{ "_mfchash" }, |
{ "_mfchash" }, |
#define N_VIFTABLE 17 |
#define N_VIFTABLE 17 |
{ "_viftable" }, |
{ "_viftable" }, |
#define N_IPX 18 |
|
{ "_ipxcbtable"}, |
|
#define N_IPXSTAT 19 |
|
{ "_ipxstat"}, |
|
#define N_SPXSTAT 20 |
|
{ "_spx_istat"}, |
|
#define N_AHSTAT 21 |
#define N_AHSTAT 21 |
{ "_ahstat"}, |
{ "_ahstat"}, |
#define N_ESPSTAT 22 |
#define N_ESPSTAT 22 |
|
|
}; |
}; |
#endif |
#endif |
|
|
struct protox ipxprotox[] = { |
|
{ N_IPX, N_IPXSTAT, 1, ipxprotopr, |
|
ipx_stats, 0, "ipx" }, |
|
{ N_IPX, N_SPXSTAT, 1, ipxprotopr, |
|
spx_stats, 0, "spx" }, |
|
{ -1, -1, 0, 0, |
|
0, 0, 0 } |
|
}; |
|
|
|
struct protox atalkprotox[] = { |
struct protox atalkprotox[] = { |
{ N_DDPCB, N_DDPSTAT, 1, atalkprotopr, |
{ N_DDPCB, N_DDPSTAT, 1, atalkprotopr, |
ddp_stats, 0, "ddp" }, |
ddp_stats, 0, "ddp" }, |
|
|
|
|
#ifndef INET6 |
#ifndef INET6 |
struct protox *protoprotox[] = { |
struct protox *protoprotox[] = { |
protox, ipxprotox, atalkprotox, NULL |
protox, atalkprotox, NULL |
}; |
}; |
#else |
#else |
struct protox *protoprotox[] = { |
struct protox *protoprotox[] = { |
protox, ip6protox, ipxprotox, atalkprotox, NULL |
protox, ip6protox, atalkprotox, NULL |
}; |
}; |
#endif |
#endif |
|
|
|
|
af = AF_LOCAL; |
af = AF_LOCAL; |
else if (strcmp(optarg, "unix") == 0) |
else if (strcmp(optarg, "unix") == 0) |
af = AF_UNIX; |
af = AF_UNIX; |
else if (strcmp(optarg, "ipx") == 0) |
|
af = AF_IPX; |
|
else if (strcmp(optarg, "encap") == 0) |
else if (strcmp(optarg, "encap") == 0) |
af = PF_KEY; |
af = PF_KEY; |
else if (strcmp(optarg, "atalk") == 0) |
else if (strcmp(optarg, "atalk") == 0) |
|
|
for (tp = ip6protox; tp->pr_name; tp++) |
for (tp = ip6protox; tp->pr_name; tp++) |
printproto(tp, tp->pr_name); |
printproto(tp, tp->pr_name); |
#endif |
#endif |
if (af == AF_IPX || af == AF_UNSPEC) |
|
for (tp = ipxprotox; tp->pr_name; tp++) |
|
printproto(tp, tp->pr_name); |
|
if ((af == AF_UNIX || af == AF_UNSPEC) && !sflag) |
if ((af == AF_UNIX || af == AF_UNSPEC) && !sflag) |
unixpr(nl[N_UNIXSW].n_value); |
unixpr(nl[N_UNIXSW].n_value); |
if (af == AF_APPLETALK || af == AF_UNSPEC) |
if (af == AF_APPLETALK || af == AF_UNSPEC) |