Start Timer T1 in src/server, sock_shutdown()
Start Timer T1 in src/server, sock_shutdown() after sending a DM frame to the remote station
This commit is contained in:
parent
58a0025c59
commit
82dd1d50a8
1 changed files with 7 additions and 1 deletions
|
@ -290,6 +290,8 @@ static int sock_delete_remote(patty_ax25_server *server,
|
||||||
|
|
||||||
static int sock_shutdown(patty_ax25_server *server,
|
static int sock_shutdown(patty_ax25_server *server,
|
||||||
patty_ax25_sock *sock) {
|
patty_ax25_sock *sock) {
|
||||||
|
int ret;
|
||||||
|
|
||||||
fd_clear(server, sock->fd);
|
fd_clear(server, sock->fd);
|
||||||
|
|
||||||
if (sock->type != PATTY_AX25_SOCK_STREAM) {
|
if (sock->type != PATTY_AX25_SOCK_STREAM) {
|
||||||
|
@ -302,7 +304,11 @@ static int sock_shutdown(patty_ax25_server *server,
|
||||||
|
|
||||||
sock->state = PATTY_AX25_SOCK_PENDING_DISCONNECT;
|
sock->state = PATTY_AX25_SOCK_PENDING_DISCONNECT;
|
||||||
|
|
||||||
return patty_ax25_sock_send_disc(sock, PATTY_AX25_FRAME_POLL);
|
ret = patty_ax25_sock_send_disc(sock, PATTY_AX25_FRAME_POLL);
|
||||||
|
|
||||||
|
patty_timer_start(&sock->timer_t1, sock->n_ack);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sock_save(patty_ax25_server *server,
|
static int sock_save(patty_ax25_server *server,
|
||||||
|
|
Loading…
Add table
Reference in a new issue