10 #include <linux/errno.h>
11 #include <linux/types.h>
12 #include <linux/socket.h>
15 #include <linux/kernel.h>
18 #include <linux/string.h>
20 #include <linux/net.h>
24 #include <linux/netdevice.h>
27 #include <asm/uaccess.h>
28 #include <linux/fcntl.h>
32 static void ax25_ds_timeout(
unsigned long);
44 setup_timer(&ax25_dev->dama.slave_timer, ax25_ds_timeout,
45 (
unsigned long)ax25_dev);
59 ax25_dev->dama.slave_timeout =
69 static void ax25_ds_timeout(
unsigned long arg)
75 if (ax25_dev ==
NULL || !ax25_dev->dama.slave)
78 if (!ax25_dev->dama.slave_timeout || --ax25_dev->dama.slave_timeout) {
83 spin_lock(&ax25_list_lock);
91 spin_unlock(&ax25_list_lock);
103 switch (ax25->
state) {
173 ax25->
sk->sk_err = 0;
176 ax25->
sk->sk_state_change(ax25->
sk);
193 switch (ax25->
state) {