Revision 3b46e624 slirp/tcp_timer.c
b/slirp/tcp_timer.c | ||
---|---|---|
164 | 164 |
* to a longer retransmit interval and retransmit one segment. |
165 | 165 |
*/ |
166 | 166 |
case TCPT_REXMT: |
167 |
|
|
167 |
|
|
168 | 168 |
/* |
169 | 169 |
* XXXXX If a packet has timed out, then remove all the queued |
170 | 170 |
* packets for that session. |
171 | 171 |
*/ |
172 |
|
|
172 |
|
|
173 | 173 |
if (++tp->t_rxtshift > TCP_MAXRXTSHIFT) { |
174 | 174 |
/* |
175 | 175 |
* This is a hack to suit our terminal server here at the uni of canberra |
... | ... | |
185 | 185 |
* |
186 | 186 |
* *sigh* |
187 | 187 |
*/ |
188 |
|
|
188 |
|
|
189 | 189 |
tp->t_maxseg >>= 1; |
190 | 190 |
if (tp->t_maxseg < 32) { |
191 | 191 |
/* |
... | ... | |
197 | 197 |
/* tp->t_softerror : ETIMEDOUT); */ /* XXX */ |
198 | 198 |
return (tp); /* XXX */ |
199 | 199 |
} |
200 |
|
|
200 |
|
|
201 | 201 |
/* |
202 | 202 |
* Set rxtshift to 6, which is still at the maximum |
203 | 203 |
* backoff time |
Also available in: Unified diff