Lines Matching refs:ax25

46 void ax25_std_heartbeat_expiry(ax25_cb *ax25)  in ax25_std_heartbeat_expiry()  argument
48 switch (ax25->state) { in ax25_std_heartbeat_expiry()
53 if (ax25->sk == NULL || ax25->sk->destroy || (ax25->sk->state == TCP_LISTEN && ax25->sk->dead)) { in ax25_std_heartbeat_expiry()
54 ax25_destroy_socket(ax25); in ax25_std_heartbeat_expiry()
64 if (ax25->sk != NULL) { in ax25_std_heartbeat_expiry()
65 if (atomic_read(&ax25->sk->rmem_alloc) < (ax25->sk->rcvbuf / 2) && in ax25_std_heartbeat_expiry()
66 (ax25->condition & AX25_COND_OWN_RX_BUSY)) { in ax25_std_heartbeat_expiry()
67 ax25->condition &= ~AX25_COND_OWN_RX_BUSY; in ax25_std_heartbeat_expiry()
68 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_heartbeat_expiry()
69 ax25_send_control(ax25, AX25_RR, AX25_POLLOFF, AX25_RESPONSE); in ax25_std_heartbeat_expiry()
75 ax25_start_heartbeat(ax25); in ax25_std_heartbeat_expiry()
78 void ax25_std_t2timer_expiry(ax25_cb *ax25) in ax25_std_t2timer_expiry() argument
80 if (ax25->condition & AX25_COND_ACK_PENDING) { in ax25_std_t2timer_expiry()
81 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_t2timer_expiry()
82 ax25_std_timeout_response(ax25); in ax25_std_t2timer_expiry()
86 void ax25_std_t3timer_expiry(ax25_cb *ax25) in ax25_std_t3timer_expiry() argument
88 ax25->n2count = 0; in ax25_std_t3timer_expiry()
89 ax25_std_transmit_enquiry(ax25); in ax25_std_t3timer_expiry()
90 ax25->state = AX25_STATE_4; in ax25_std_t3timer_expiry()
93 void ax25_std_idletimer_expiry(ax25_cb *ax25) in ax25_std_idletimer_expiry() argument
95 ax25_clear_queues(ax25); in ax25_std_idletimer_expiry()
97 ax25->n2count = 0; in ax25_std_idletimer_expiry()
98 ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND); in ax25_std_idletimer_expiry()
99 ax25->state = AX25_STATE_2; in ax25_std_idletimer_expiry()
101 ax25_calculate_t1(ax25); in ax25_std_idletimer_expiry()
102 ax25_start_t1timer(ax25); in ax25_std_idletimer_expiry()
103 ax25_stop_t2timer(ax25); in ax25_std_idletimer_expiry()
104 ax25_stop_t3timer(ax25); in ax25_std_idletimer_expiry()
106 if (ax25->sk != NULL) { in ax25_std_idletimer_expiry()
107 ax25->sk->state = TCP_CLOSE; in ax25_std_idletimer_expiry()
108 ax25->sk->err = 0; in ax25_std_idletimer_expiry()
109 ax25->sk->shutdown |= SEND_SHUTDOWN; in ax25_std_idletimer_expiry()
110 if (!ax25->sk->dead) in ax25_std_idletimer_expiry()
111 ax25->sk->state_change(ax25->sk); in ax25_std_idletimer_expiry()
112 ax25->sk->dead = 1; in ax25_std_idletimer_expiry()
116 void ax25_std_t1timer_expiry(ax25_cb *ax25) in ax25_std_t1timer_expiry() argument
118 switch (ax25->state) { in ax25_std_t1timer_expiry()
120 if (ax25->n2count == ax25->n2) { in ax25_std_t1timer_expiry()
121 if (ax25->modulus == AX25_MODULUS) { in ax25_std_t1timer_expiry()
122 ax25_disconnect(ax25, ETIMEDOUT); in ax25_std_t1timer_expiry()
125 ax25->modulus = AX25_MODULUS; in ax25_std_t1timer_expiry()
126 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_t1timer_expiry()
127 ax25->n2count = 0; in ax25_std_t1timer_expiry()
128 ax25_send_control(ax25, AX25_SABM, AX25_POLLON, AX25_COMMAND); in ax25_std_t1timer_expiry()
131 ax25->n2count++; in ax25_std_t1timer_expiry()
132 if (ax25->modulus == AX25_MODULUS) in ax25_std_t1timer_expiry()
133 ax25_send_control(ax25, AX25_SABM, AX25_POLLON, AX25_COMMAND); in ax25_std_t1timer_expiry()
135 ax25_send_control(ax25, AX25_SABME, AX25_POLLON, AX25_COMMAND); in ax25_std_t1timer_expiry()
140 if (ax25->n2count == ax25->n2) { in ax25_std_t1timer_expiry()
141 ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND); in ax25_std_t1timer_expiry()
142 ax25_disconnect(ax25, ETIMEDOUT); in ax25_std_t1timer_expiry()
145 ax25->n2count++; in ax25_std_t1timer_expiry()
146 ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND); in ax25_std_t1timer_expiry()
151 ax25->n2count = 1; in ax25_std_t1timer_expiry()
152 ax25_std_transmit_enquiry(ax25); in ax25_std_t1timer_expiry()
153 ax25->state = AX25_STATE_4; in ax25_std_t1timer_expiry()
157 if (ax25->n2count == ax25->n2) { in ax25_std_t1timer_expiry()
158 ax25_send_control(ax25, AX25_DM, AX25_POLLON, AX25_RESPONSE); in ax25_std_t1timer_expiry()
159 ax25_disconnect(ax25, ETIMEDOUT); in ax25_std_t1timer_expiry()
162 ax25->n2count++; in ax25_std_t1timer_expiry()
163 ax25_std_transmit_enquiry(ax25); in ax25_std_t1timer_expiry()
168 ax25_calculate_t1(ax25); in ax25_std_t1timer_expiry()
169 ax25_start_t1timer(ax25); in ax25_std_t1timer_expiry()