Send RR Response, not Command, on Timer T2 timeout
This commit is contained in:
		
							parent
							
								
									4d84ed183e
								
							
						
					
					
						commit
						301e58c6e9
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -2091,7 +2091,7 @@ static int handle_sock(uint32_t key, | ||||||
|                     sock->pending = 0; |                     sock->pending = 0; | ||||||
| 
 | 
 | ||||||
|                     return patty_ax25_sock_send_rr(sock, |                     return patty_ax25_sock_send_rr(sock, | ||||||
|                                                    PATTY_AX25_FRAME_COMMAND, |                                                    PATTY_AX25_FRAME_RESPONSE, | ||||||
|                                                    0); |                                                    0); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  | @ -2131,7 +2131,7 @@ static int handle_sock(uint32_t key, | ||||||
|         patty_timer_stop(&sock->timer_t3); |         patty_timer_stop(&sock->timer_t3); | ||||||
|         patty_timer_start(&sock->timer_t1, sock->n_ack); |         patty_timer_start(&sock->timer_t1, sock->n_ack); | ||||||
| 
 | 
 | ||||||
|         return patty_ax25_sock_send_rr(sock, PATTY_AX25_FRAME_COMMAND, 1); |         return 0; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if ((len = read(sock->fd, sock->rx_buf, sock->n_maxlen_rx)) < 0) { |     if ((len = read(sock->fd, sock->rx_buf, sock->n_maxlen_rx)) < 0) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue