Send REJ implicitly for out-of-order I frames

Send REJ implicitly for out-of-order I frames, regardless of I frame P/F
flag
This commit is contained in:
XANTRONIX Development 2020-07-31 01:12:02 -04:00 committed by XANTRONIX Industrial
parent 62c116a17c
commit 05cac588f2

View file

@ -1307,8 +1307,7 @@ static int handle_i(patty_ax25_server *server,
if (sock->seq_recv == frame->ns) {
patty_ax25_sock_seq_recv_incr(sock);
} else {
return frame->pf?
patty_ax25_sock_send_rej(sock, PATTY_AX25_FRAME_RESPONSE, 0): 0;
return patty_ax25_sock_send_rej(sock, PATTY_AX25_FRAME_RESPONSE, 1);
}
if (write(sock->fd, frame->info, frame->infolen) < 0) {