version 1.12, 2004/03/13 22:02:13 |
version 1.13, 2005/03/25 17:01:03 |
|
|
|
|
if (off == 0) |
if (off == 0) |
return; |
return; |
if (kread(off, (char *) &initial, sizeof(struct ddpcb *)) < 0) |
if (kread(off, &initial, sizeof(struct ddpcb *)) < 0) |
return; |
return; |
ddpcb = cb; |
ddpcb = cb; |
prev = (struct ddpcb *) off; |
prev = (struct ddpcb *) off; |
for (next = initial; next != NULL; prev = next) { |
for (next = initial; next != NULL; prev = next) { |
u_long ppcb = (u_long) next; |
u_long ppcb = (u_long) next; |
|
|
if (kread((u_long) next, (char *) &ddpcb, sizeof(ddpcb)) < 0) |
if (kread((u_long) next, &ddpcb, sizeof(ddpcb)) < 0) |
return; |
return; |
next = ddpcb.ddp_next; |
next = ddpcb.ddp_next; |
#if 0 |
#if 0 |
|
|
continue; |
continue; |
} |
} |
#endif |
#endif |
if (kread((u_long) ddpcb.ddp_socket, |
if (kread((u_long) ddpcb.ddp_socket, &sockb, |
(char *) &sockb, sizeof(sockb)) < 0) |
sizeof(sockb)) < 0) |
return; |
return; |
if (first) { |
if (first) { |
printf("Active ATALK connections"); |
printf("Active ATALK connections"); |
|
|
|
|
if (off == 0) |
if (off == 0) |
return; |
return; |
if (kread(off, (char *) &ddpstat, sizeof(ddpstat)) < 0) |
if (kread(off, &ddpstat, sizeof(ddpstat)) < 0) |
return; |
return; |
printf("%s:\n", name); |
printf("%s:\n", name); |
p(ddps_short, "\t%ld packet%s with short headers\n"); |
p(ddps_short, "\t%ld packet%s with short headers\n"); |