/kernel/linux/linux-5.10/net/ax25/ |
H A D | ax25_std_in.c | 23 #include <net/ax25.h> 37 * Handling of state 0 and connection release is in ax25.c. 39 static int ax25_std_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) in ax25_std_state1_machine() argument 43 ax25->modulus = AX25_MODULUS; in ax25_std_state1_machine() 44 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state1_machine() 45 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state1_machine() 49 ax25->modulus = AX25_EMODULUS; in ax25_std_state1_machine() 50 ax25->window = ax25 in ax25_std_state1_machine() 103 ax25_std_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) ax25_std_state2_machine() argument 141 ax25_std_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) ax25_std_state3_machine() argument 266 ax25_std_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) ax25_std_state4_machine() argument 419 ax25_std_frame_in(ax25_cb *ax25, struct sk_buff *skb, int type) ax25_std_frame_in() argument [all...] |
H A D | ax25_ds_in.c | 16 #include <net/ax25.h> 30 * Handling of state 0 and connection release is in ax25.c. 32 static int ax25_ds_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) in ax25_ds_state1_machine() argument 36 ax25->modulus = AX25_MODULUS; in ax25_ds_state1_machine() 37 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_state1_machine() 38 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_ds_state1_machine() 42 ax25->modulus = AX25_EMODULUS; in ax25_ds_state1_machine() 43 ax25->window = ax25 in ax25_ds_state1_machine() 100 ax25_ds_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) ax25_ds_state2_machine() argument 145 ax25_ds_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) ax25_ds_state3_machine() argument 279 ax25_ds_frame_in(ax25_cb *ax25, struct sk_buff *skb, int type) ax25_ds_frame_in() argument [all...] |
H A D | ax25_timer.c | 23 #include <net/ax25.h> 39 void ax25_setup_timers(ax25_cb *ax25) in ax25_setup_timers() argument 41 timer_setup(&ax25->timer, ax25_heartbeat_expiry, 0); in ax25_setup_timers() 42 timer_setup(&ax25->t1timer, ax25_t1timer_expiry, 0); in ax25_setup_timers() 43 timer_setup(&ax25->t2timer, ax25_t2timer_expiry, 0); in ax25_setup_timers() 44 timer_setup(&ax25->t3timer, ax25_t3timer_expiry, 0); in ax25_setup_timers() 45 timer_setup(&ax25->idletimer, ax25_idletimer_expiry, 0); in ax25_setup_timers() 48 void ax25_start_heartbeat(ax25_cb *ax25) in ax25_start_heartbeat() argument 50 mod_timer(&ax25->timer, jiffies + 5 * HZ); in ax25_start_heartbeat() 53 void ax25_start_t1timer(ax25_cb *ax25) in ax25_start_t1timer() argument 58 ax25_start_t2timer(ax25_cb *ax25) ax25_start_t2timer() argument 63 ax25_start_t3timer(ax25_cb *ax25) ax25_start_t3timer() argument 71 ax25_start_idletimer(ax25_cb *ax25) ax25_start_idletimer() argument 79 ax25_stop_heartbeat(ax25_cb *ax25) ax25_stop_heartbeat() argument 84 ax25_stop_t1timer(ax25_cb *ax25) ax25_stop_t1timer() argument 89 ax25_stop_t2timer(ax25_cb *ax25) ax25_stop_t2timer() argument 94 ax25_stop_t3timer(ax25_cb *ax25) ax25_stop_t3timer() argument 99 ax25_stop_idletimer(ax25_cb *ax25) ax25_stop_idletimer() argument 104 ax25_t1timer_running(ax25_cb *ax25) ax25_t1timer_running() argument 122 ax25_cb *ax25 = from_timer(ax25, t, timer); ax25_heartbeat_expiry() local 146 ax25_cb *ax25 = from_timer(ax25, t, t1timer); ax25_t1timer_expiry() local 165 ax25_cb *ax25 = from_timer(ax25, t, t2timer); ax25_t2timer_expiry() local 184 ax25_cb *ax25 = from_timer(ax25, t, t3timer); ax25_t3timer_expiry() local 205 ax25_cb *ax25 = from_timer(ax25, t, idletimer); ax25_idletimer_expiry() local [all...] |
H A D | ax25_std_timer.c | 18 #include <net/ax25.h> 29 void ax25_std_heartbeat_expiry(ax25_cb *ax25) in ax25_std_heartbeat_expiry() argument 31 struct sock *sk = ax25->sk; in ax25_std_heartbeat_expiry() 36 switch (ax25->state) { in ax25_std_heartbeat_expiry() 46 ax25_destroy_socket(ax25); in ax25_std_heartbeat_expiry() 51 ax25_destroy_socket(ax25); in ax25_std_heartbeat_expiry() 64 (ax25->condition & AX25_COND_OWN_RX_BUSY)) { in ax25_std_heartbeat_expiry() 65 ax25->condition &= ~AX25_COND_OWN_RX_BUSY; in ax25_std_heartbeat_expiry() 66 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_heartbeat_expiry() 67 ax25_send_control(ax25, AX25_R in ax25_std_heartbeat_expiry() 79 ax25_std_t2timer_expiry(ax25_cb *ax25) ax25_std_t2timer_expiry() argument 87 ax25_std_t3timer_expiry(ax25_cb *ax25) ax25_std_t3timer_expiry() argument 94 ax25_std_idletimer_expiry(ax25_cb *ax25) ax25_std_idletimer_expiry() argument 120 ax25_std_t1timer_expiry(ax25_cb *ax25) ax25_std_t1timer_expiry() argument [all...] |
H A D | ax25_ds_timer.c | 19 #include <net/ax25.h> 35 * (aka /proc/sys/net/ax25/{dev}/dama_slave_timeout) is still in 68 ax25_cb *ax25; in ax25_ds_timeout() local 79 ax25_for_each(ax25, &ax25_list) { in ax25_ds_timeout() 80 if (ax25->ax25_dev != ax25_dev || !(ax25->condition & AX25_COND_DAMA_MODE)) in ax25_ds_timeout() 83 ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND); in ax25_ds_timeout() 84 ax25_disconnect(ax25, ETIMEDOUT); in ax25_ds_timeout() 91 void ax25_ds_heartbeat_expiry(ax25_cb *ax25) in ax25_ds_heartbeat_expiry() argument 93 struct sock *sk=ax25 in ax25_ds_heartbeat_expiry() 145 ax25_ds_t3timer_expiry(ax25_cb *ax25) ax25_ds_t3timer_expiry() argument 156 ax25_ds_idletimer_expiry(ax25_cb *ax25) ax25_ds_idletimer_expiry() argument 188 ax25_ds_t1_timeout(ax25_cb *ax25) ax25_ds_t1_timeout() argument [all...] |
H A D | ax25_out.c | 20 #include <net/ax25.h> 35 ax25_cb *ax25; in ax25_send_frame() local 51 if ((ax25 = ax25_find_cb(src, dest, digi, dev)) != NULL) { in ax25_send_frame() 52 ax25_output(ax25, paclen, skb); in ax25_send_frame() 53 return ax25; /* It already existed */ in ax25_send_frame() 59 if ((ax25 = ax25_create_cb()) == NULL) in ax25_send_frame() 62 ax25_fillin_cb(ax25, ax25_dev); in ax25_send_frame() 64 ax25->source_addr = *src; in ax25_send_frame() 65 ax25->dest_addr = *dest; in ax25_send_frame() 68 ax25 in ax25_send_frame() 116 ax25_output(ax25_cb *ax25, int paclen, struct sk_buff *skb) ax25_output() argument 211 ax25_send_iframe(ax25_cb *ax25, struct sk_buff *skb, int poll_bit) ax25_send_iframe() argument 241 ax25_kick(ax25_cb *ax25) ax25_kick() argument 326 ax25_transmit_buffer(ax25_cb *ax25, struct sk_buff *skb, int type) ax25_transmit_buffer() argument 376 ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr) ax25_check_iframes_acked() argument [all...] |
H A D | ax25_subr.c | 19 #include <net/ax25.h> 33 void ax25_clear_queues(ax25_cb *ax25) in ax25_clear_queues() argument 35 skb_queue_purge(&ax25->write_queue); in ax25_clear_queues() 36 skb_queue_purge(&ax25->ack_queue); in ax25_clear_queues() 37 skb_queue_purge(&ax25->reseq_queue); in ax25_clear_queues() 38 skb_queue_purge(&ax25->frag_queue); in ax25_clear_queues() 46 void ax25_frames_acked(ax25_cb *ax25, unsigned short nr) in ax25_frames_acked() argument 53 if (ax25->va != nr) { in ax25_frames_acked() 54 while (skb_peek(&ax25->ack_queue) != NULL && ax25 in ax25_frames_acked() 62 ax25_requeue_frames(ax25_cb *ax25) ax25_requeue_frames() argument 79 ax25_validate_nr(ax25_cb *ax25, unsigned short nr) ax25_validate_nr() argument 97 ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) ax25_decode() argument 147 ax25_send_control(ax25_cb *ax25, int frametype, int poll_bit, int type) ax25_send_control() argument 220 ax25_calculate_t1(ax25_cb *ax25) ax25_calculate_t1() argument 245 ax25_calculate_rtt(ax25_cb *ax25) ax25_calculate_rtt() argument 260 ax25_disconnect(ax25_cb *ax25, int reason) ax25_disconnect() argument [all...] |
H A D | ax25_std_subr.c | 15 #include <net/ax25.h> 30 void ax25_std_nr_error_recovery(ax25_cb *ax25) in ax25_std_nr_error_recovery() argument 32 ax25_std_establish_data_link(ax25); in ax25_std_nr_error_recovery() 35 void ax25_std_establish_data_link(ax25_cb *ax25) in ax25_std_establish_data_link() argument 37 ax25->condition = 0x00; in ax25_std_establish_data_link() 38 ax25->n2count = 0; in ax25_std_establish_data_link() 40 if (ax25->modulus == AX25_MODULUS) in ax25_std_establish_data_link() 41 ax25_send_control(ax25, AX25_SABM, AX25_POLLON, AX25_COMMAND); in ax25_std_establish_data_link() 43 ax25_send_control(ax25, AX25_SABME, AX25_POLLON, AX25_COMMAND); in ax25_std_establish_data_link() 45 ax25_calculate_t1(ax25); in ax25_std_establish_data_link() 52 ax25_std_transmit_enquiry(ax25_cb *ax25) ax25_std_transmit_enquiry() argument 65 ax25_std_enquiry_response(ax25_cb *ax25) ax25_std_enquiry_response() argument 75 ax25_std_timeout_response(ax25_cb *ax25) ax25_std_timeout_response() argument [all...] |
H A D | af_ax25.c | 26 #include <net/ax25.h> 63 static void ax25_cb_del(ax25_cb *ax25) in ax25_cb_del() argument 65 if (!hlist_unhashed(&ax25->ax25_node)) { in ax25_cb_del() 67 hlist_del_init(&ax25->ax25_node); in ax25_cb_del() 69 ax25_cb_put(ax25); in ax25_cb_del() 156 void ax25_cb_add(ax25_cb *ax25) in ax25_cb_add() argument 159 ax25_cb_hold(ax25); in ax25_cb_add() 160 hlist_add_head(&ax25->ax25_node, &ax25_list); in ax25_cb_add() 286 ax25_cb *ax25 = from_timer(ax25, in ax25_destroy_timer() local 304 ax25_destroy_socket(ax25_cb *ax25) ax25_destroy_socket() argument 365 ax25_cb *ax25; ax25_ctl_ioctl() local 466 ax25_fillin_cb_from_dev(ax25_cb *ax25, ax25_dev *ax25_dev) ax25_fillin_cb_from_dev() argument 490 ax25_fillin_cb(ax25_cb *ax25, ax25_dev *ax25_dev) ax25_fillin_cb() argument 525 ax25_cb *ax25; ax25_create_cb() local 555 ax25_cb *ax25; ax25_setsockopt() local 706 ax25_cb *ax25; ax25_getsockopt() local 832 ax25_cb *ax25; ax25_create() local 912 ax25_cb *ax25, *oax25; ax25_make_new() local 982 ax25_cb *ax25; ax25_release() local 1084 ax25_cb *ax25; ax25_bind() local 1161 ax25_cb *ax25 = sk_to_ax25(sk), *ax25t; ax25_connect() local 1441 ax25_cb *ax25; ax25_getname() local 1490 ax25_cb *ax25; ax25_sendmsg() local 1831 ax25_cb *ax25 = sk_to_ax25(sk); ax25_ioctl() local 1936 ax25_cb *ax25 = hlist_entry(v, struct ax25_cb, ax25_node); ax25_info_show() local [all...] |
H A D | ax25_ds_subr.c | 18 #include <net/ax25.h> 28 void ax25_ds_nr_error_recovery(ax25_cb *ax25) in ax25_ds_nr_error_recovery() argument 30 ax25_ds_establish_data_link(ax25); in ax25_ds_nr_error_recovery() 36 void ax25_ds_enquiry_response(ax25_cb *ax25) in ax25_ds_enquiry_response() argument 63 ax25_std_enquiry_response(ax25); in ax25_ds_enquiry_response() 65 if (!(ax25->condition & AX25_COND_PEER_RX_BUSY)) { in ax25_ds_enquiry_response() 66 ax25_requeue_frames(ax25); in ax25_ds_enquiry_response() 67 ax25_kick(ax25); in ax25_ds_enquiry_response() 70 if (ax25->state == AX25_STATE_1 || ax25 in ax25_ds_enquiry_response() 107 ax25_ds_establish_data_link(ax25_cb *ax25) ax25_ds_establish_data_link() argument 156 ax25_cb *ax25; ax25_check_dama_slave() local 194 ax25_dama_on(ax25_cb *ax25) ax25_dama_on() argument 200 ax25_dama_off(ax25_cb *ax25) ax25_dama_off() argument [all...] |
H A D | ax25_in.c | 19 #include <net/ax25.h> 34 static int ax25_rx_fragment(ax25_cb *ax25, struct sk_buff *skb) in ax25_rx_fragment() argument 38 if (ax25->fragno != 0) { in ax25_rx_fragment() 40 if ((ax25->fragno - 1) == (*skb->data & AX25_SEG_REM)) { in ax25_rx_fragment() 42 ax25->fragno = *skb->data & AX25_SEG_REM; in ax25_rx_fragment() 44 ax25->fraglen += skb->len; in ax25_rx_fragment() 45 skb_queue_tail(&ax25->frag_queue, skb); in ax25_rx_fragment() 48 if (ax25->fragno == 0) { in ax25_rx_fragment() 50 ax25->fraglen, in ax25_rx_fragment() 53 skb_queue_purge(&ax25 in ax25_rx_fragment() 99 ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb) ax25_rx_iframe() argument 157 ax25_process_rx_frame(ax25_cb *ax25, struct sk_buff *skb, int type, int dama) ax25_process_rx_frame() argument 190 ax25_cb *ax25; ax25_rcv() local [all...] |
H A D | Makefile | 6 obj-$(CONFIG_AX25) += ax25.o 8 ax25-y := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \ 11 ax25-$(CONFIG_AX25_DAMA_SLAVE) += ax25_ds_in.o ax25_ds_subr.o ax25_ds_timer.o 12 ax25-$(CONFIG_SYSCTL) += sysctl_net_ax25.o
|
/kernel/linux/linux-6.6/net/ax25/ |
H A D | ax25_std_in.c | 23 #include <net/ax25.h> 37 * Handling of state 0 and connection release is in ax25.c. 39 static int ax25_std_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) in ax25_std_state1_machine() argument 43 ax25->modulus = AX25_MODULUS; in ax25_std_state1_machine() 44 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state1_machine() 45 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state1_machine() 49 ax25->modulus = AX25_EMODULUS; in ax25_std_state1_machine() 50 ax25->window = ax25 in ax25_std_state1_machine() 103 ax25_std_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) ax25_std_state2_machine() argument 141 ax25_std_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) ax25_std_state3_machine() argument 266 ax25_std_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) ax25_std_state4_machine() argument 419 ax25_std_frame_in(ax25_cb *ax25, struct sk_buff *skb, int type) ax25_std_frame_in() argument [all...] |
H A D | ax25_ds_in.c | 16 #include <net/ax25.h> 30 * Handling of state 0 and connection release is in ax25.c. 32 static int ax25_ds_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) in ax25_ds_state1_machine() argument 36 ax25->modulus = AX25_MODULUS; in ax25_ds_state1_machine() 37 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_state1_machine() 38 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_ds_state1_machine() 42 ax25->modulus = AX25_EMODULUS; in ax25_ds_state1_machine() 43 ax25->window = ax25 in ax25_ds_state1_machine() 100 ax25_ds_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) ax25_ds_state2_machine() argument 145 ax25_ds_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) ax25_ds_state3_machine() argument 279 ax25_ds_frame_in(ax25_cb *ax25, struct sk_buff *skb, int type) ax25_ds_frame_in() argument [all...] |
H A D | ax25_timer.c | 23 #include <net/ax25.h> 39 void ax25_setup_timers(ax25_cb *ax25) in ax25_setup_timers() argument 41 timer_setup(&ax25->timer, ax25_heartbeat_expiry, 0); in ax25_setup_timers() 42 timer_setup(&ax25->t1timer, ax25_t1timer_expiry, 0); in ax25_setup_timers() 43 timer_setup(&ax25->t2timer, ax25_t2timer_expiry, 0); in ax25_setup_timers() 44 timer_setup(&ax25->t3timer, ax25_t3timer_expiry, 0); in ax25_setup_timers() 45 timer_setup(&ax25->idletimer, ax25_idletimer_expiry, 0); in ax25_setup_timers() 48 void ax25_start_heartbeat(ax25_cb *ax25) in ax25_start_heartbeat() argument 50 mod_timer(&ax25->timer, jiffies + 5 * HZ); in ax25_start_heartbeat() 53 void ax25_start_t1timer(ax25_cb *ax25) in ax25_start_t1timer() argument 58 ax25_start_t2timer(ax25_cb *ax25) ax25_start_t2timer() argument 63 ax25_start_t3timer(ax25_cb *ax25) ax25_start_t3timer() argument 71 ax25_start_idletimer(ax25_cb *ax25) ax25_start_idletimer() argument 79 ax25_stop_heartbeat(ax25_cb *ax25) ax25_stop_heartbeat() argument 84 ax25_stop_t1timer(ax25_cb *ax25) ax25_stop_t1timer() argument 89 ax25_stop_t2timer(ax25_cb *ax25) ax25_stop_t2timer() argument 94 ax25_stop_t3timer(ax25_cb *ax25) ax25_stop_t3timer() argument 99 ax25_stop_idletimer(ax25_cb *ax25) ax25_stop_idletimer() argument 104 ax25_t1timer_running(ax25_cb *ax25) ax25_t1timer_running() argument 124 ax25_cb *ax25 = from_timer(ax25, t, timer); ax25_heartbeat_expiry() local 148 ax25_cb *ax25 = from_timer(ax25, t, t1timer); ax25_t1timer_expiry() local 167 ax25_cb *ax25 = from_timer(ax25, t, t2timer); ax25_t2timer_expiry() local 186 ax25_cb *ax25 = from_timer(ax25, t, t3timer); ax25_t3timer_expiry() local 207 ax25_cb *ax25 = from_timer(ax25, t, idletimer); ax25_idletimer_expiry() local [all...] |
H A D | ax25_std_timer.c | 18 #include <net/ax25.h> 29 void ax25_std_heartbeat_expiry(ax25_cb *ax25) in ax25_std_heartbeat_expiry() argument 31 struct sock *sk = ax25->sk; in ax25_std_heartbeat_expiry() 36 switch (ax25->state) { in ax25_std_heartbeat_expiry() 46 ax25_destroy_socket(ax25); in ax25_std_heartbeat_expiry() 51 ax25_destroy_socket(ax25); in ax25_std_heartbeat_expiry() 64 (ax25->condition & AX25_COND_OWN_RX_BUSY)) { in ax25_std_heartbeat_expiry() 65 ax25->condition &= ~AX25_COND_OWN_RX_BUSY; in ax25_std_heartbeat_expiry() 66 ax25->condition &= ~AX25_COND_ACK_PENDING; in ax25_std_heartbeat_expiry() 67 ax25_send_control(ax25, AX25_R in ax25_std_heartbeat_expiry() 79 ax25_std_t2timer_expiry(ax25_cb *ax25) ax25_std_t2timer_expiry() argument 87 ax25_std_t3timer_expiry(ax25_cb *ax25) ax25_std_t3timer_expiry() argument 94 ax25_std_idletimer_expiry(ax25_cb *ax25) ax25_std_idletimer_expiry() argument 120 ax25_std_t1timer_expiry(ax25_cb *ax25) ax25_std_t1timer_expiry() argument [all...] |
H A D | ax25_ds_timer.c | 19 #include <net/ax25.h> 35 * (aka /proc/sys/net/ax25/{dev}/dama_slave_timeout) is still in 68 ax25_cb *ax25; in ax25_ds_timeout() local 79 ax25_for_each(ax25, &ax25_list) { in ax25_ds_timeout() 80 if (ax25->ax25_dev != ax25_dev || !(ax25->condition & AX25_COND_DAMA_MODE)) in ax25_ds_timeout() 83 ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND); in ax25_ds_timeout() 84 ax25_disconnect(ax25, ETIMEDOUT); in ax25_ds_timeout() 91 void ax25_ds_heartbeat_expiry(ax25_cb *ax25) in ax25_ds_heartbeat_expiry() argument 93 struct sock *sk=ax25 in ax25_ds_heartbeat_expiry() 145 ax25_ds_t3timer_expiry(ax25_cb *ax25) ax25_ds_t3timer_expiry() argument 156 ax25_ds_idletimer_expiry(ax25_cb *ax25) ax25_ds_idletimer_expiry() argument 188 ax25_ds_t1_timeout(ax25_cb *ax25) ax25_ds_t1_timeout() argument [all...] |
H A D | ax25_out.c | 20 #include <net/ax25.h> 35 ax25_cb *ax25; in ax25_send_frame() local 51 if ((ax25 = ax25_find_cb(src, dest, digi, dev)) != NULL) { in ax25_send_frame() 52 ax25_output(ax25, paclen, skb); in ax25_send_frame() 53 return ax25; /* It already existed */ in ax25_send_frame() 59 if ((ax25 = ax25_create_cb()) == NULL) in ax25_send_frame() 62 ax25_fillin_cb(ax25, ax25_dev); in ax25_send_frame() 64 ax25->source_addr = *src; in ax25_send_frame() 65 ax25->dest_addr = *dest; in ax25_send_frame() 68 ax25 in ax25_send_frame() 116 ax25_output(ax25_cb *ax25, int paclen, struct sk_buff *skb) ax25_output() argument 211 ax25_send_iframe(ax25_cb *ax25, struct sk_buff *skb, int poll_bit) ax25_send_iframe() argument 241 ax25_kick(ax25_cb *ax25) ax25_kick() argument 326 ax25_transmit_buffer(ax25_cb *ax25, struct sk_buff *skb, int type) ax25_transmit_buffer() argument 369 ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr) ax25_check_iframes_acked() argument [all...] |
H A D | ax25_subr.c | 19 #include <net/ax25.h> 33 void ax25_clear_queues(ax25_cb *ax25) in ax25_clear_queues() argument 35 skb_queue_purge(&ax25->write_queue); in ax25_clear_queues() 36 skb_queue_purge(&ax25->ack_queue); in ax25_clear_queues() 37 skb_queue_purge(&ax25->reseq_queue); in ax25_clear_queues() 38 skb_queue_purge(&ax25->frag_queue); in ax25_clear_queues() 46 void ax25_frames_acked(ax25_cb *ax25, unsigned short nr) in ax25_frames_acked() argument 53 if (ax25->va != nr) { in ax25_frames_acked() 54 while (skb_peek(&ax25->ack_queue) != NULL && ax25 in ax25_frames_acked() 62 ax25_requeue_frames(ax25_cb *ax25) ax25_requeue_frames() argument 79 ax25_validate_nr(ax25_cb *ax25, unsigned short nr) ax25_validate_nr() argument 97 ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) ax25_decode() argument 147 ax25_send_control(ax25_cb *ax25, int frametype, int poll_bit, int type) ax25_send_control() argument 220 ax25_calculate_t1(ax25_cb *ax25) ax25_calculate_t1() argument 245 ax25_calculate_rtt(ax25_cb *ax25) ax25_calculate_rtt() argument 260 ax25_disconnect(ax25_cb *ax25, int reason) ax25_disconnect() argument [all...] |
H A D | ax25_std_subr.c | 15 #include <net/ax25.h> 30 void ax25_std_nr_error_recovery(ax25_cb *ax25) in ax25_std_nr_error_recovery() argument 32 ax25_std_establish_data_link(ax25); in ax25_std_nr_error_recovery() 35 void ax25_std_establish_data_link(ax25_cb *ax25) in ax25_std_establish_data_link() argument 37 ax25->condition = 0x00; in ax25_std_establish_data_link() 38 ax25->n2count = 0; in ax25_std_establish_data_link() 40 if (ax25->modulus == AX25_MODULUS) in ax25_std_establish_data_link() 41 ax25_send_control(ax25, AX25_SABM, AX25_POLLON, AX25_COMMAND); in ax25_std_establish_data_link() 43 ax25_send_control(ax25, AX25_SABME, AX25_POLLON, AX25_COMMAND); in ax25_std_establish_data_link() 45 ax25_calculate_t1(ax25); in ax25_std_establish_data_link() 52 ax25_std_transmit_enquiry(ax25_cb *ax25) ax25_std_transmit_enquiry() argument 65 ax25_std_enquiry_response(ax25_cb *ax25) ax25_std_enquiry_response() argument 75 ax25_std_timeout_response(ax25_cb *ax25) ax25_std_timeout_response() argument [all...] |
H A D | af_ax25.c | 26 #include <net/ax25.h> 63 static void ax25_cb_del(ax25_cb *ax25) in ax25_cb_del() argument 66 if (!hlist_unhashed(&ax25->ax25_node)) { in ax25_cb_del() 67 hlist_del_init(&ax25->ax25_node); in ax25_cb_del() 68 ax25_cb_put(ax25); in ax25_cb_del() 160 void ax25_cb_add(ax25_cb *ax25) in ax25_cb_add() argument 163 ax25_cb_hold(ax25); in ax25_cb_add() 164 hlist_add_head(&ax25->ax25_node, &ax25_list); in ax25_cb_add() 290 ax25_cb *ax25 = from_timer(ax25, in ax25_destroy_timer() local 308 ax25_destroy_socket(ax25_cb *ax25) ax25_destroy_socket() argument 369 ax25_cb *ax25; ax25_ctl_ioctl() local 470 ax25_fillin_cb_from_dev(ax25_cb *ax25, ax25_dev *ax25_dev) ax25_fillin_cb_from_dev() argument 494 ax25_fillin_cb(ax25_cb *ax25, ax25_dev *ax25_dev) ax25_fillin_cb() argument 529 ax25_cb *ax25; ax25_create_cb() local 559 ax25_cb *ax25; ax25_setsockopt() local 710 ax25_cb *ax25; ax25_getsockopt() local 836 ax25_cb *ax25; ax25_create() local 917 ax25_cb *ax25, *oax25; ax25_make_new() local 987 ax25_cb *ax25; ax25_release() local 1093 ax25_cb *ax25; ax25_bind() local 1170 ax25_cb *ax25 = sk_to_ax25(sk), *ax25t; ax25_connect() local 1450 ax25_cb *ax25; ax25_getname() local 1499 ax25_cb *ax25; ax25_sendmsg() local 1840 ax25_cb *ax25 = sk_to_ax25(sk); ax25_ioctl() local 1945 ax25_cb *ax25 = hlist_entry(v, struct ax25_cb, ax25_node); ax25_info_show() local [all...] |
H A D | ax25_ds_subr.c | 18 #include <net/ax25.h> 28 void ax25_ds_nr_error_recovery(ax25_cb *ax25) in ax25_ds_nr_error_recovery() argument 30 ax25_ds_establish_data_link(ax25); in ax25_ds_nr_error_recovery() 36 void ax25_ds_enquiry_response(ax25_cb *ax25) in ax25_ds_enquiry_response() argument 63 ax25_std_enquiry_response(ax25); in ax25_ds_enquiry_response() 65 if (!(ax25->condition & AX25_COND_PEER_RX_BUSY)) { in ax25_ds_enquiry_response() 66 ax25_requeue_frames(ax25); in ax25_ds_enquiry_response() 67 ax25_kick(ax25); in ax25_ds_enquiry_response() 70 if (ax25->state == AX25_STATE_1 || ax25 in ax25_ds_enquiry_response() 107 ax25_ds_establish_data_link(ax25_cb *ax25) ax25_ds_establish_data_link() argument 156 ax25_cb *ax25; ax25_check_dama_slave() local 194 ax25_dama_on(ax25_cb *ax25) ax25_dama_on() argument 200 ax25_dama_off(ax25_cb *ax25) ax25_dama_off() argument [all...] |
H A D | ax25_in.c | 19 #include <net/ax25.h> 34 static int ax25_rx_fragment(ax25_cb *ax25, struct sk_buff *skb) in ax25_rx_fragment() argument 38 if (ax25->fragno != 0) { in ax25_rx_fragment() 40 if ((ax25->fragno - 1) == (*skb->data & AX25_SEG_REM)) { in ax25_rx_fragment() 42 ax25->fragno = *skb->data & AX25_SEG_REM; in ax25_rx_fragment() 44 ax25->fraglen += skb->len; in ax25_rx_fragment() 45 skb_queue_tail(&ax25->frag_queue, skb); in ax25_rx_fragment() 48 if (ax25->fragno == 0) { in ax25_rx_fragment() 50 ax25->fraglen, in ax25_rx_fragment() 53 skb_queue_purge(&ax25 in ax25_rx_fragment() 99 ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb) ax25_rx_iframe() argument 157 ax25_process_rx_frame(ax25_cb *ax25, struct sk_buff *skb, int type, int dama) ax25_process_rx_frame() argument 190 ax25_cb *ax25; ax25_rcv() local [all...] |
H A D | Makefile | 6 obj-$(CONFIG_AX25) += ax25.o 8 ax25-y := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \ 11 ax25-$(CONFIG_AX25_DAMA_SLAVE) += ax25_ds_in.o ax25_ds_subr.o ax25_ds_timer.o 12 ax25-$(CONFIG_SYSCTL) += sysctl_net_ax25.o
|
/kernel/linux/linux-5.10/net/netrom/ |
H A D | nr_route.c | 18 #include <net/ax25.h> 98 ax25_address *ax25, ax25_digi *ax25_digi, struct net_device *dev, in nr_add_node() 113 nr_neigh = nr_neigh_get_dev(ax25, dev); in nr_add_node() 152 nr_neigh->callsign = *ax25; in nr_add_node() 154 nr_neigh->ax25 = NULL; in nr_add_node() 181 if (quality != 0 && ax25cmp(nr, ax25) == 0 && !nr_neigh->locked) in nr_add_node() 400 nr_neigh->ax25 = NULL; in nr_add_neigh() 707 void nr_link_failed(ax25_cb *ax25, int reason) in nr_link_failed() argument 714 if (s->ax25 == ax25) { in nr_link_failed() 97 nr_add_node(ax25_address *nr, const char *mnemonic, ax25_address *ax25, ax25_digi *ax25_digi, struct net_device *dev, int quality, int obs_count) nr_add_node() argument 748 nr_route_frame(struct sk_buff *skb, ax25_cb *ax25) nr_route_frame() argument [all...] |