/net/ax25/ |
H A D | Makefile | 5 obj-$(CONFIG_AX25) += ax25.o 7 ax25-y := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \ 10 ax25-$(CONFIG_AX25_DAMA_SLAVE) += ax25_ds_in.o ax25_ds_subr.o ax25_ds_timer.o 11 ax25-$(CONFIG_SYSCTL) += sysctl_net_ax25.o
|
H A D | ax25_std_subr.c | 18 #include <net/ax25.h> 33 void ax25_std_nr_error_recovery(ax25_cb *ax25) argument 35 ax25_std_establish_data_link(ax25); 38 void ax25_std_establish_data_link(ax25_cb *ax25) argument 40 ax25->condition = 0x00; 41 ax25->n2count = 0; 43 if (ax25->modulus == AX25_MODULUS) 44 ax25_send_control(ax25, AX25_SABM, AX25_POLLON, AX25_COMMAND); 46 ax25_send_control(ax25, AX25_SABME, AX25_POLLON, AX25_COMMAND); 48 ax25_calculate_t1(ax25); 55 ax25_std_transmit_enquiry(ax25_cb *ax25) argument 68 ax25_std_enquiry_response(ax25_cb *ax25) argument 78 ax25_std_timeout_response(ax25_cb *ax25) argument [all...] |
H A D | ax25_std_timer.c | 21 #include <net/ax25.h> 32 void ax25_std_heartbeat_expiry(ax25_cb *ax25) argument 34 struct sock *sk = ax25->sk; 39 switch (ax25->state) { 48 ax25_destroy_socket(ax25); 52 ax25_destroy_socket(ax25); 65 (ax25->condition & AX25_COND_OWN_RX_BUSY)) { 66 ax25->condition &= ~AX25_COND_OWN_RX_BUSY; 67 ax25->condition &= ~AX25_COND_ACK_PENDING; 68 ax25_send_control(ax25, AX25_R 80 ax25_std_t2timer_expiry(ax25_cb *ax25) argument 88 ax25_std_t3timer_expiry(ax25_cb *ax25) argument 95 ax25_std_idletimer_expiry(ax25_cb *ax25) argument 121 ax25_std_t1timer_expiry(ax25_cb *ax25) argument [all...] |
H A D | ax25_ds_in.c | 19 #include <net/ax25.h> 33 * Handling of state 0 and connection release is in ax25.c. 35 static int ax25_ds_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) argument 39 ax25->modulus = AX25_MODULUS; 40 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; 41 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); 45 ax25->modulus = AX25_EMODULUS; 46 ax25->window = ax25 103 ax25_ds_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) argument 148 ax25_ds_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) argument 282 ax25_ds_frame_in(ax25_cb *ax25, struct sk_buff *skb, int type) argument [all...] |
H A D | ax25_ds_timer.c | 22 #include <net/ax25.h> 38 * (aka /proc/sys/net/ax25/{dev}/dama_slave_timeout) is still in 72 ax25_cb *ax25; local 83 ax25_for_each(ax25, &ax25_list) { 84 if (ax25->ax25_dev != ax25_dev || !(ax25->condition & AX25_COND_DAMA_MODE)) 87 ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND); 88 ax25_disconnect(ax25, ETIMEDOUT); 95 void ax25_ds_heartbeat_expiry(ax25_cb *ax25) argument 97 struct sock *sk=ax25 147 ax25_ds_t3timer_expiry(ax25_cb *ax25) argument 158 ax25_ds_idletimer_expiry(ax25_cb *ax25) argument 190 ax25_ds_t1_timeout(ax25_cb *ax25) argument [all...] |
H A D | ax25_std_in.c | 26 #include <net/ax25.h> 40 * Handling of state 0 and connection release is in ax25.c. 42 static int ax25_std_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) argument 46 ax25->modulus = AX25_MODULUS; 47 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; 48 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); 52 ax25->modulus = AX25_EMODULUS; 53 ax25->window = ax25 106 ax25_std_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int type) argument 144 ax25_std_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) argument 269 ax25_std_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type) argument 422 ax25_std_frame_in(ax25_cb *ax25, struct sk_buff *skb, int type) argument [all...] |
H A D | ax25_ds_subr.c | 21 #include <net/ax25.h> 31 void ax25_ds_nr_error_recovery(ax25_cb *ax25) argument 33 ax25_ds_establish_data_link(ax25); 39 void ax25_ds_enquiry_response(ax25_cb *ax25) argument 66 ax25_std_enquiry_response(ax25); 68 if (!(ax25->condition & AX25_COND_PEER_RX_BUSY)) { 69 ax25_requeue_frames(ax25); 70 ax25_kick(ax25); 73 if (ax25->state == AX25_STATE_1 || ax25 110 ax25_ds_establish_data_link(ax25_cb *ax25) argument 159 ax25_cb *ax25; local 197 ax25_dama_on(ax25_cb *ax25) argument 203 ax25_dama_off(ax25_cb *ax25) argument [all...] |
H A D | ax25_iface.c | 21 #include <net/ax25.h> 193 void ax25_link_failed(ax25_cb *ax25, int reason) argument 199 lf->func(ax25, reason);
|
H A D | ax25_in.c | 22 #include <net/ax25.h> 38 static int ax25_rx_fragment(ax25_cb *ax25, struct sk_buff *skb) argument 42 if (ax25->fragno != 0) { 44 if ((ax25->fragno - 1) == (*skb->data & AX25_SEG_REM)) { 46 ax25->fragno = *skb->data & AX25_SEG_REM; 48 ax25->fraglen += skb->len; 49 skb_queue_tail(&ax25->frag_queue, skb); 52 if (ax25->fragno == 0) { 54 ax25->fraglen, 57 skb_queue_purge(&ax25 103 ax25_rx_iframe(ax25_cb *ax25, struct sk_buff *skb) argument 161 ax25_process_rx_frame(ax25_cb *ax25, struct sk_buff *skb, int type, int dama) argument 194 ax25_cb *ax25; local [all...] |
H A D | ax25_ip.c | 20 #include <net/ax25.h> 112 ax25_cb *ax25; local 178 ax25=ax25_send_frame( 183 if (ax25) { 184 ax25_cb_put(ax25);
|
H A D | ax25_timer.c | 26 #include <net/ax25.h> 42 void ax25_setup_timers(ax25_cb *ax25) argument 44 setup_timer(&ax25->timer, ax25_heartbeat_expiry, (unsigned long)ax25); 45 setup_timer(&ax25->t1timer, ax25_t1timer_expiry, (unsigned long)ax25); 46 setup_timer(&ax25->t2timer, ax25_t2timer_expiry, (unsigned long)ax25); 47 setup_timer(&ax25->t3timer, ax25_t3timer_expiry, (unsigned long)ax25); 52 ax25_start_heartbeat(ax25_cb *ax25) argument 57 ax25_start_t1timer(ax25_cb *ax25) argument 62 ax25_start_t2timer(ax25_cb *ax25) argument 67 ax25_start_t3timer(ax25_cb *ax25) argument 75 ax25_start_idletimer(ax25_cb *ax25) argument 83 ax25_stop_heartbeat(ax25_cb *ax25) argument 88 ax25_stop_t1timer(ax25_cb *ax25) argument 93 ax25_stop_t2timer(ax25_cb *ax25) argument 98 ax25_stop_t3timer(ax25_cb *ax25) argument 103 ax25_stop_idletimer(ax25_cb *ax25) argument 108 ax25_t1timer_running(ax25_cb *ax25) argument 126 ax25_cb *ax25 = (ax25_cb *)param; local 150 ax25_cb *ax25 = (ax25_cb *)param; local 169 ax25_cb *ax25 = (ax25_cb *)param; local 188 ax25_cb *ax25 = (ax25_cb *)param; local 209 ax25_cb *ax25 = (ax25_cb *)param; local [all...] |
H A D | ax25_out.c | 23 #include <net/ax25.h> 39 ax25_cb *ax25; local 55 if ((ax25 = ax25_find_cb(src, dest, digi, dev)) != NULL) { 56 ax25_output(ax25, paclen, skb); 57 return ax25; /* It already existed */ 63 if ((ax25 = ax25_create_cb()) == NULL) 66 ax25_fillin_cb(ax25, ax25_dev); 68 ax25->source_addr = *src; 69 ax25->dest_addr = *dest; 72 ax25 120 ax25_output(ax25_cb *ax25, int paclen, struct sk_buff *skb) argument 215 ax25_send_iframe(ax25_cb *ax25, struct sk_buff *skb, int poll_bit) argument 245 ax25_kick(ax25_cb *ax25) argument 330 ax25_transmit_buffer(ax25_cb *ax25, struct sk_buff *skb, int type) argument 380 ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr) argument [all...] |
H A D | ax25_subr.c | 22 #include <net/ax25.h> 36 void ax25_clear_queues(ax25_cb *ax25) argument 38 skb_queue_purge(&ax25->write_queue); 39 skb_queue_purge(&ax25->ack_queue); 40 skb_queue_purge(&ax25->reseq_queue); 41 skb_queue_purge(&ax25->frag_queue); 49 void ax25_frames_acked(ax25_cb *ax25, unsigned short nr) argument 56 if (ax25->va != nr) { 57 while (skb_peek(&ax25->ack_queue) != NULL && ax25 65 ax25_requeue_frames(ax25_cb *ax25) argument 82 ax25_validate_nr(ax25_cb *ax25, unsigned short nr) argument 100 ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf) argument 150 ax25_send_control(ax25_cb *ax25, int frametype, int poll_bit, int type) argument 223 ax25_calculate_t1(ax25_cb *ax25) argument 248 ax25_calculate_rtt(ax25_cb *ax25) argument 263 ax25_disconnect(ax25_cb *ax25, int reason) argument [all...] |
H A D | ax25_route.c | 27 #include <net/ax25.h> 411 int ax25_rt_autobind(ax25_cb *ax25, ax25_address *addr) argument 420 if ((ax25->ax25_dev = ax25_dev_ax25dev(ax25_rt->dev)) == NULL) { 427 ax25->source_addr = user->call; 434 ax25->source_addr = *(ax25_address *)ax25->ax25_dev->dev->dev_addr; 438 ax25->digipeat = kmemdup(ax25_rt->digipeat, sizeof(ax25_digi), 440 if (ax25->digipeat == NULL) { 444 ax25_adjust_path(addr, ax25->digipeat); 447 if (ax25 [all...] |
H A D | af_ax25.c | 29 #include <net/ax25.h> 67 static void ax25_cb_del(ax25_cb *ax25) argument 69 if (!hlist_unhashed(&ax25->ax25_node)) { 71 hlist_del_init(&ax25->ax25_node); 73 ax25_cb_put(ax25); 144 void ax25_cb_add(ax25_cb *ax25) argument 147 ax25_cb_hold(ax25); 148 hlist_add_head(&ax25->ax25_node, &ax25_list); 274 ax25_cb *ax25=(ax25_cb *)data; local 277 sk=ax25 292 ax25_destroy_socket(ax25_cb *ax25) argument 354 ax25_cb *ax25; local 450 ax25_fillin_cb_from_dev(ax25_cb *ax25, ax25_dev *ax25_dev) argument 474 ax25_fillin_cb(ax25_cb *ax25, ax25_dev *ax25_dev) argument 509 ax25_cb *ax25; local 539 ax25_cb *ax25; local 681 ax25_cb *ax25; local 807 ax25_cb *ax25; local 882 ax25_cb *ax25, *oax25; local 952 ax25_cb *ax25; local 1042 ax25_cb *ax25; local 1117 ax25_cb *ax25 = ax25_sk(sk), *ax25t; local 1393 ax25_cb *ax25; local 1443 ax25_cb *ax25; local 1767 ax25_cb *ax25 = ax25_sk(sk); local 1872 ax25_cb *ax25 = hlist_entry(v, struct ax25_cb, ax25_node); local [all...] |
/net/netrom/ |
H A D | nr_route.c | 21 #include <net/ax25.h> 89 ax25_address *ax25, ax25_digi *ax25_digi, struct net_device *dev, 105 nr_neigh = nr_neigh_get_dev(ax25, dev); 144 nr_neigh->callsign = *ax25; 146 nr_neigh->ax25 = NULL; 173 if (quality != 0 && ax25cmp(nr, ax25) == 0 && !nr_neigh->locked) 428 nr_neigh->ax25 = NULL; 734 void nr_link_failed(ax25_cb *ax25, int reason) argument 741 if (s->ax25 == ax25) { 88 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) argument 775 nr_route_frame(struct sk_buff *skb, ax25_cb *ax25) argument [all...] |
/net/rose/ |
H A D | rose_route.c | 20 #include <net/ax25.h> 97 rose_neigh->ax25 = NULL; 241 if (rose_neigh->ax25) 242 ax25_cb_put(rose_neigh->ax25); 251 if (rose_neigh->ax25) 252 ax25_cb_put(rose_neigh->ax25); 383 sn->ax25 = NULL; 812 void rose_link_failed(ax25_cb *ax25, int reason) argument 819 if (rose_neigh->ax25 == ax25) 853 rose_route_frame(struct sk_buff *skb, ax25_cb *ax25) argument [all...] |