Lines 90-96
Link Here
|
90 |
|
90 |
|
91 |
static caddr_t tcp_pcbs[TCP_NDEBUG]; |
91 |
static caddr_t tcp_pcbs[TCP_NDEBUG]; |
92 |
static n_time ntime; |
92 |
static n_time ntime; |
93 |
static int aflag, kflag, memf, follow, sflag, tflag; |
93 |
static int aflag, kflag, memf, follow, sflag; |
94 |
|
94 |
|
95 |
void dotrace(caddr_t); |
95 |
void dotrace(caddr_t); |
96 |
void klseek(int, off_t, int); |
96 |
void klseek(int, off_t, int); |
Lines 108-114
Link Here
|
108 |
nl[1].n_name = strdup("_tcp_debx"); |
108 |
nl[1].n_name = strdup("_tcp_debx"); |
109 |
|
109 |
|
110 |
jflag = npcbs = 0; |
110 |
jflag = npcbs = 0; |
111 |
while ((ch = getopt(argc, argv, "afjp:st")) != -1) |
111 |
while ((ch = getopt(argc, argv, "afjp:s")) != -1) |
112 |
switch (ch) { |
112 |
switch (ch) { |
113 |
case 'a': |
113 |
case 'a': |
114 |
++aflag; |
114 |
++aflag; |
Lines 128-136
Link Here
|
128 |
case 's': |
128 |
case 's': |
129 |
++sflag; |
129 |
++sflag; |
130 |
break; |
130 |
break; |
131 |
case 't': |
|
|
132 |
++tflag; |
133 |
break; |
134 |
case '?': |
131 |
case '?': |
135 |
default: |
132 |
default: |
136 |
usage(); |
133 |
usage(); |
Lines 427-454
Link Here
|
427 |
(u_long)tp->snd_wl1, |
424 |
(u_long)tp->snd_wl1, |
428 |
(u_long)tp->snd_wl2, (u_long)tp->snd_wnd); |
425 |
(u_long)tp->snd_wl2, (u_long)tp->snd_wnd); |
429 |
} |
426 |
} |
430 |
/* print out timers? */ |
|
|
431 |
#if 0 |
432 |
/* |
433 |
* XXX |
434 |
* kernel now uses callouts, not integer time values. |
435 |
*/ |
436 |
if (tflag) { |
437 |
register char *cp = "\t"; |
438 |
register int i; |
439 |
|
440 |
for (i = 0; i < TCPT_NTIMERS; i++) { |
441 |
if (tp->t_timer[i] == 0) |
442 |
continue; |
443 |
printf("%s%s=%d", cp, tcptimers[i], tp->t_timer[i]); |
444 |
if (i == TCPT_REXMT) |
445 |
printf(" (t_rxtshft=%d)", tp->t_rxtshift); |
446 |
cp = ", "; |
447 |
} |
448 |
if (*cp != '\t') |
449 |
putchar('\n'); |
450 |
} |
451 |
#endif |
452 |
} |
427 |
} |
453 |
|
428 |
|
454 |
int |
429 |
int |