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:
parent
62c116a17c
commit
05cac588f2
1 changed files with 1 additions and 2 deletions
|
@ -1307,8 +1307,7 @@ static int handle_i(patty_ax25_server *server,
|
||||||
if (sock->seq_recv == frame->ns) {
|
if (sock->seq_recv == frame->ns) {
|
||||||
patty_ax25_sock_seq_recv_incr(sock);
|
patty_ax25_sock_seq_recv_incr(sock);
|
||||||
} else {
|
} else {
|
||||||
return frame->pf?
|
return patty_ax25_sock_send_rej(sock, PATTY_AX25_FRAME_RESPONSE, 1);
|
||||||
patty_ax25_sock_send_rej(sock, PATTY_AX25_FRAME_RESPONSE, 0): 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (write(sock->fd, frame->info, frame->infolen) < 0) {
|
if (write(sock->fd, frame->info, frame->infolen) < 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue