/linux-2.4.37.9/net/ax25/ |
D | ax25_dev.c | 43 ax25_dev *ax25_dev_list; 45 ax25_dev *ax25_dev_ax25dev(struct net_device *dev) in ax25_dev_ax25dev() 47 ax25_dev *ax25_dev; in ax25_dev_ax25dev() local 49 for (ax25_dev = ax25_dev_list; ax25_dev != NULL; ax25_dev = ax25_dev->next) in ax25_dev_ax25dev() 50 if (ax25_dev->dev == dev) in ax25_dev_ax25dev() 51 return ax25_dev; in ax25_dev_ax25dev() 56 ax25_dev *ax25_addr_ax25dev(ax25_address *addr) in ax25_addr_ax25dev() 58 ax25_dev *ax25_dev; in ax25_addr_ax25dev() local 60 for (ax25_dev = ax25_dev_list; ax25_dev != NULL; ax25_dev = ax25_dev->next) in ax25_addr_ax25dev() 61 if (ax25cmp(addr, (ax25_address *)ax25_dev->dev->dev_addr) == 0) in ax25_addr_ax25dev() [all …]
|
D | ax25_ds_subr.c | 94 ax25_ds_set_timer(ax25->ax25_dev); in ax25_ds_enquiry_response() 100 if (ax25o->ax25_dev != ax25->ax25_dev) in ax25_ds_enquiry_response() 140 static void ax25_kiss_cmd(ax25_dev *ax25_dev, unsigned char cmd, unsigned char param) in ax25_kiss_cmd() argument 145 if (ax25_dev->dev == NULL) in ax25_kiss_cmd() 157 skb->dev = ax25_dev->dev; in ax25_kiss_cmd() 171 static int ax25_check_dama_slave(ax25_dev *ax25_dev) in ax25_check_dama_slave() argument 176 …if (ax25->ax25_dev == ax25_dev && (ax25->condition & AX25_COND_DAMA_MODE) && ax25->state > AX25_ST… in ax25_check_dama_slave() 182 void ax25_dev_dama_on(ax25_dev *ax25_dev) in ax25_dev_dama_on() argument 184 if (ax25_dev == NULL) in ax25_dev_dama_on() 187 if (ax25_dev->dama.slave == 0) in ax25_dev_dama_on() [all …]
|
D | ax25_ds_timer.c | 49 static void ax25_ds_add_timer(ax25_dev *ax25_dev) in ax25_ds_add_timer() argument 51 struct timer_list *t = &ax25_dev->dama.slave_timer; in ax25_ds_add_timer() 52 t->data = (unsigned long) ax25_dev; in ax25_ds_add_timer() 58 void ax25_ds_del_timer(ax25_dev *ax25_dev) in ax25_ds_del_timer() argument 60 if (ax25_dev) del_timer(&ax25_dev->dama.slave_timer); in ax25_ds_del_timer() 63 void ax25_ds_set_timer(ax25_dev *ax25_dev) in ax25_ds_set_timer() argument 65 if (ax25_dev == NULL) /* paranoia */ in ax25_ds_set_timer() 68 del_timer(&ax25_dev->dama.slave_timer); in ax25_ds_set_timer() 69 ax25_dev->dama.slave_timeout = ax25_dev->values[AX25_VALUES_DS_TIMEOUT] / 10; in ax25_ds_set_timer() 70 ax25_ds_add_timer(ax25_dev); in ax25_ds_set_timer() [all …]
|
D | sysctl_net_ax25.c | 105 ax25_dev *ax25_dev; in ax25_register_sysctl() local 108 …for (ax25_table_size = sizeof(ctl_table), ax25_dev = ax25_dev_list; ax25_dev != NULL; ax25_dev = a… in ax25_register_sysctl() 116 for (n = 0, ax25_dev = ax25_dev_list; ax25_dev != NULL; ax25_dev = ax25_dev->next) { in ax25_register_sysctl() 125 ax25_table[n].child = ax25_dev->systable = child; in ax25_register_sysctl() 127 ax25_table[n].procname = ax25_dev->dev->name; in ax25_register_sysctl() 143 child[k].data = &ax25_dev->values[k]; in ax25_register_sysctl()
|
D | ax25_timer.c | 158 if (ax25->ax25_dev) in ax25_heartbeat_expiry() 159 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]; in ax25_heartbeat_expiry() 169 if (ax25->ax25_dev->dama.slave) in ax25_heartbeat_expiry() 182 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t1timer_expiry() 190 if (!ax25->ax25_dev->dama.slave) in ax25_t1timer_expiry() 201 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t2timer_expiry() 209 if (!ax25->ax25_dev->dama.slave) in ax25_t2timer_expiry() 220 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t3timer_expiry() 228 if (ax25->ax25_dev->dama.slave) in ax25_t3timer_expiry() 241 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_idletimer_expiry() [all …]
|
D | af_ax25.c | 202 ax25_dev *ax25_dev; in ax25_kill_by_device() local 205 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_kill_by_device() 209 if (s->ax25_dev == ax25_dev) { in ax25_kill_by_device() 210 s->ax25_dev = NULL; in ax25_kill_by_device() 276 if (s->ax25_dev == NULL || s->ax25_dev->dev == dev) { in ax25_find_listener() 325 if (s->ax25_dev == NULL) in ax25_find_cb() 327 …source_addr, src_addr) == 0 && ax25cmp(&s->dest_addr, dest_addr) == 0 && s->ax25_dev->dev == dev) { in ax25_find_cb() 464 ax25_dev *ax25_dev; in ax25_ctl_ioctl() local 471 if ((ax25_dev = ax25_addr_ax25dev(&ax25_ctl.port_addr)) == NULL) in ax25_ctl_ioctl() 481 …if ((ax25 = ax25_find_cb(&ax25_ctl.source_addr, &ax25_ctl.dest_addr, &digi, ax25_dev->dev)) == NUL… in ax25_ctl_ioctl() [all …]
|
D | ax25_out.c | 62 ax25_dev *ax25_dev; in ax25_send_frame() local 70 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_send_frame() 73 paclen = ax25_dev->values[AX25_VALUES_PACLEN]; in ax25_send_frame() 84 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_send_frame() 90 ax25_fillin_cb(ax25, ax25_dev); in ax25_send_frame() 103 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_send_frame() 111 if (ax25_dev->dama.slave) in ax25_send_frame() 204 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_output() 216 if (!ax25->ax25_dev->dama.slave) ax25_kick(ax25); in ax25_output() 307 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_kick() [all …]
|
D | ax25_in.c | 96 skbn->dev = ax25->ax25_dev->dev; in ax25_rx_fragment() 161 skb->dev = ax25->ax25_dev->dev; in ax25_rx_iframe() 178 if (ax25->sk != NULL && ax25->ax25_dev->values[AX25_VALUES_CONMODE] == 2) { in ax25_rx_iframe() 200 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_process_rx_frame() 208 if (dama || ax25->ax25_dev->dama.slave) in ax25_process_rx_frame() 228 ax25_dev *ax25_dev; in ax25_rcv() local 239 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) { in ax25_rcv() 338 if (ax25_dev->values[AX25_VALUES_CONMODE] == 0) { in ax25_rcv() 385 if (sk->ack_backlog == sk->max_ack_backlog || (make = ax25_make_new(sk, ax25_dev)) == NULL) { in ax25_rcv() 411 ax25_fillin_cb(ax25, ax25_dev); in ax25_rcv() [all …]
|
D | ax25_route.c | 122 ax25_dev *ax25_dev; in ax25_rt_ioctl() local 129 if ((ax25_dev = ax25_addr_ax25dev(&route.port_addr)) == NULL) in ax25_rt_ioctl() 134 if (ax25cmp(&ax25_rt->callsign, &route.dest_addr) == 0 && ax25_rt->dev == ax25_dev->dev) { in ax25_rt_ioctl() 155 ax25_rt->dev = ax25_dev->dev; in ax25_rt_ioctl() 179 if ((ax25_dev = ax25_addr_ax25dev(&route.port_addr)) == NULL) in ax25_rt_ioctl() 185 if (s->dev == ax25_dev->dev && ax25cmp(&route.dest_addr, &s->callsign) == 0) { in ax25_rt_ioctl() 209 if ((ax25_dev = ax25_addr_ax25dev(&rt_option.port_addr)) == NULL) in ax25_rt_ioctl() 212 if (ax25_rt->dev == ax25_dev->dev && ax25cmp(&rt_option.dest_addr, &ax25_rt->callsign) == 0) { in ax25_rt_ioctl() 362 if ((ax25->ax25_dev = ax25_dev_ax25dev(ax25_rt->dev)) == NULL) in ax25_rt_autobind() 368 call = (ax25_address *)ax25->ax25_dev->dev->dev_addr; in ax25_rt_autobind()
|
D | ax25_ip.c | 116 ax25_dev *ax25_dev; in ax25_rebuild_header() local 130 if ((ax25_dev = ax25_dev_ax25dev(dev)) == NULL) in ax25_rebuild_header() 134 if (route->ip_mode == 'V' || (route->ip_mode == ' ' && ax25_dev->values[AX25_VALUES_IPDEFMODE])) { in ax25_rebuild_header() 176 ax25_send_frame(ourskb, ax25_dev->values[AX25_VALUES_PACLEN], &src_c, in ax25_rebuild_header()
|
D | ax25_std_in.c | 72 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state1_machine() 78 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state1_machine() 112 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state1_machine() 175 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state3_machine() 178 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state3_machine() 300 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_state4_machine() 303 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_std_state4_machine()
|
D | ax25_ds_in.c | 57 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_state1_machine() 63 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_ds_state1_machine() 167 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_state3_machine() 170 ax25->window = ax25->ax25_dev->values[AX25_VALUES_EWINDOW]; in ax25_ds_state3_machine()
|
D | Makefile | 15 obj-y := ax25_addr.o ax25_dev.o ax25_iface.o ax25_in.o ax25_ip.o ax25_out.o \
|
D | ax25_std_timer.c | 126 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_std_t1timer_expiry()
|
/linux-2.4.37.9/include/net/ |
D | ax25.h | 164 typedef struct ax25_dev { struct 165 struct ax25_dev *next; argument 173 } ax25_dev; typedef 179 ax25_dev *ax25_dev; member 208 extern void ax25_fillin_cb(ax25_cb *, ax25_dev *); 210 extern struct sock *ax25_make_new(struct sock *, struct ax25_dev *); 224 extern ax25_dev *ax25_dev_list; 225 extern ax25_dev *ax25_dev_ax25dev(struct net_device *); 226 extern ax25_dev *ax25_addr_ax25dev(ax25_address *); 240 extern void ax25_dev_dama_on(ax25_dev *); [all …]
|
/linux-2.4.37.9/net/netrom/ |
D | nr_route.c | 745 ax25->ax25_dev->dev, 0, sysctl_netrom_obsolescence_count_initialiser); in nr_route_frame()
|
/linux-2.4.37.9/net/rose/ |
D | rose_route.c | 789 …if (ax25cmp(&ax25->dest_addr, &rose_neigh->callsign) == 0 && ax25->ax25_dev->dev == rose_neigh->de… in rose_route_frame()
|