15 #include <linux/errno.h>
16 #include <linux/types.h>
17 #include <linux/socket.h>
19 #include <linux/kernel.h>
20 #include <linux/module.h>
23 #include <linux/string.h>
25 #include <linux/net.h>
28 #include <linux/netdevice.h>
31 #include <asm/uaccess.h>
32 #include <linux/fcntl.h>
36 static void ax25_heartbeat_expiry(
unsigned long);
37 static void ax25_t1timer_expiry(
unsigned long);
38 static void ax25_t2timer_expiry(
unsigned long);
39 static void ax25_t3timer_expiry(
unsigned long);
40 static void ax25_idletimer_expiry(
unsigned long);
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);
48 setup_timer(&ax25->idletimer, ax25_idletimer_expiry,
110 return timer_pending(&ax25->t1timer);
115 if (!timer_pending(timer))
123 static void ax25_heartbeat_expiry(
unsigned long param)
137 #ifdef CONFIG_AX25_DAMA_SLAVE
138 case AX25_PROTO_DAMA_SLAVE:
148 static void ax25_t1timer_expiry(
unsigned long param)
158 #ifdef CONFIG_AX25_DAMA_SLAVE
159 case AX25_PROTO_DAMA_SLAVE:
167 static void ax25_t2timer_expiry(
unsigned long param)
177 #ifdef CONFIG_AX25_DAMA_SLAVE
178 case AX25_PROTO_DAMA_SLAVE:
186 static void ax25_t3timer_expiry(
unsigned long param)
196 #ifdef CONFIG_AX25_DAMA_SLAVE
197 case AX25_PROTO_DAMA_SLAVE:
207 static void ax25_idletimer_expiry(
unsigned long param)
217 #ifdef CONFIG_AX25_DAMA_SLAVE
218 case AX25_PROTO_DAMA_SLAVE: