version 1.3, 1996/06/26 05:37:22 |
version 1.4, 1996/08/16 09:29:33 |
|
|
{ "_mfchash" }, |
{ "_mfchash" }, |
#define N_VIFTABLE 31 |
#define N_VIFTABLE 31 |
{ "_viftable" }, |
{ "_viftable" }, |
|
#define N_IPX 32 |
|
{ "_ipxcbtable"}, |
|
#define N_IPXSTAT 33 |
|
{ "_ipxstat"}, |
|
#define N_SPXSTAT 34 |
|
{ "_spx_istat"}, |
|
#define N_IPXERR 35 |
|
{ "_ipx_errstat"}, |
"", |
"", |
}; |
}; |
|
|
|
|
0, 0 } |
0, 0 } |
}; |
}; |
|
|
|
struct protox ipxprotox[] = { |
|
{ N_IPX, N_IPXSTAT, 1, ipxprotopr, |
|
ipx_stats, "ipx" }, |
|
{ N_IPX, N_SPXSTAT, 1, ipxprotopr, |
|
spx_stats, "spx" }, |
|
{ -1, N_IPXERR, 1, 0, |
|
ipxerr_stats, "ipx_err" }, |
|
{ -1, -1, 0, 0, |
|
0, 0 } |
|
}; |
|
|
struct protox nsprotox[] = { |
struct protox nsprotox[] = { |
{ N_IDP, N_IDPSTAT, 1, nsprotopr, |
{ N_IDP, N_IDPSTAT, 1, nsprotopr, |
idp_stats, "idp" }, |
idp_stats, "idp" }, |
|
|
0, 0 } |
0, 0 } |
}; |
}; |
|
|
struct protox *protoprotox[] = { protox, nsprotox, isoprotox, NULL }; |
struct protox *protoprotox[] = { protox, ipxprotox, nsprotox, isoprotox, NULL }; |
|
|
static void printproto __P((struct protox *, char *)); |
static void printproto __P((struct protox *, char *)); |
static void usage __P((void)); |
static void usage __P((void)); |
|
|
dflag = 1; |
dflag = 1; |
break; |
break; |
case 'f': |
case 'f': |
if (strcmp(optarg, "ns") == 0) |
if (strcmp(optarg, "inet") == 0) |
af = AF_NS; |
|
else if (strcmp(optarg, "inet") == 0) |
|
af = AF_INET; |
af = AF_INET; |
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, "ns") == 0) |
|
af = AF_NS; |
else if (strcmp(optarg, "iso") == 0) |
else if (strcmp(optarg, "iso") == 0) |
af = AF_ISO; |
af = AF_ISO; |
else { |
else { |
|
|
} |
} |
endprotoent(); |
endprotoent(); |
} |
} |
|
if (af == AF_IPX || af == AF_UNSPEC) |
|
for (tp = ipxprotox; tp->pr_name; tp++) |
|
printproto(tp, tp->pr_name); |
if (af == AF_NS || af == AF_UNSPEC) |
if (af == AF_NS || af == AF_UNSPEC) |
for (tp = nsprotox; tp->pr_name; tp++) |
for (tp = nsprotox; tp->pr_name; tp++) |
printproto(tp, tp->pr_name); |
printproto(tp, tp->pr_name); |