Always send RR when Timer T3 runs out
Always send RR when Timer T3 runs out, as we are not likely (with modern hardware with MMUs) to be unable to receive; furthermore, RNR would have only been sent erroneously if the outward flow of traffic had been stopped
This commit is contained in:
parent
609a7271e5
commit
b619fffb32
1 changed files with 1 additions and 5 deletions
|
@ -2178,16 +2178,12 @@ static int handle_sock(uint32_t key,
|
||||||
/*
|
/*
|
||||||
* AX.25 v.2.2 Section 6.7.1.3 "Inactive Link Timer T3"
|
* AX.25 v.2.2 Section 6.7.1.3 "Inactive Link Timer T3"
|
||||||
*/
|
*/
|
||||||
int ret = FD_ISSET(sock->fd, &server->fds_watch)?
|
|
||||||
patty_ax25_sock_send_rr(sock, PATTY_AX25_FRAME_COMMAND, 1):
|
|
||||||
patty_ax25_sock_send_rnr(sock, PATTY_AX25_FRAME_COMMAND, 1);
|
|
||||||
|
|
||||||
sock->retries = sock->n_retry;
|
sock->retries = sock->n_retry;
|
||||||
|
|
||||||
patty_timer_stop(&sock->timer_t3);
|
patty_timer_stop(&sock->timer_t3);
|
||||||
patty_timer_start(&sock->timer_t1);
|
patty_timer_start(&sock->timer_t1);
|
||||||
|
|
||||||
return ret;
|
return patty_ax25_sock_send_rr(sock, PATTY_AX25_FRAME_COMMAND, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Reference in a new issue