Fix sequencing issues with SABM vs SABME sockets
This commit is contained in:
parent
420b406411
commit
87a9f1eb3f
1 changed files with 2 additions and 2 deletions
|
@ -174,7 +174,7 @@ error_if_promisc_add:
|
|||
}
|
||||
|
||||
void patty_ax25_sock_seq_send_incr(patty_ax25_sock *sock) {
|
||||
if (sock->mode == PATTY_AX25_SOCK_SABME) {
|
||||
if (sock->mode == PATTY_AX25_SOCK_SABM) {
|
||||
sock->seq_send = (sock->seq_send + 1) & 0x07;
|
||||
} else {
|
||||
sock->seq_send = (sock->seq_send + 1) & 0x7f;
|
||||
|
@ -182,7 +182,7 @@ void patty_ax25_sock_seq_send_incr(patty_ax25_sock *sock) {
|
|||
}
|
||||
|
||||
void patty_ax25_sock_seq_recv_incr(patty_ax25_sock *sock) {
|
||||
if (sock->mode == PATTY_AX25_SOCK_SABME) {
|
||||
if (sock->mode == PATTY_AX25_SOCK_SABM) {
|
||||
sock->seq_recv = (sock->seq_recv + 1) & 0x07;
|
||||
} else {
|
||||
sock->seq_recv = (sock->seq_recv + 1) & 0x7f;
|
||||
|
|
Loading…
Add table
Reference in a new issue