version 1.11, 1997/06/29 20:18:01 |
version 1.12, 1997/07/23 04:38:33 |
|
|
{ "_espstat"}, |
{ "_espstat"}, |
#define N_IP4STAT 38 |
#define N_IP4STAT 38 |
{ "_ip4stat"}, |
{ "_ip4stat"}, |
|
#define N_DDPSTAT 39 |
|
{ "_ddpstat"}, |
|
#define N_DDPCB 40 |
|
{ "_ddpcb"}, |
{ ""}, |
{ ""}, |
}; |
}; |
|
|
|
|
0, 0 } |
0, 0 } |
}; |
}; |
|
|
struct protox *protoprotox[] = { protox, ipxprotox, nsprotox, isoprotox, NULL }; |
struct protox atalkprotox[] = { |
|
{ N_DDPCB, N_DDPSTAT, 1, atalkprotopr, |
|
ddp_stats, "ddp" }, |
|
{ -1, -1, 0, 0, |
|
0, 0 } |
|
}; |
|
|
|
struct protox *protoprotox[] = { protox, ipxprotox, nsprotox, isoprotox, atalkprotox, 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)); |
static struct protox *name2protox __P((char *)); |
static struct protox *name2protox __P((char *)); |
|
|
af = AF_ISO; |
af = AF_ISO; |
else if (strcmp(optarg, "encap") == 0) |
else if (strcmp(optarg, "encap") == 0) |
af = AF_ENCAP; |
af = AF_ENCAP; |
|
else if (strcmp(optarg, "atalk") == 0) |
|
af = AF_APPLETALK; |
else { |
else { |
(void)fprintf(stderr, |
(void)fprintf(stderr, |
"%s: %s: unknown address family\n", |
"%s: %s: unknown address family\n", |
|
|
printproto(tp, tp->pr_name); |
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) |
|
for (tp = atalkprotox; tp->pr_name; tp++) |
|
printproto(tp, tp->pr_name); |
exit(0); |
exit(0); |
} |
} |
|
|