10 #include <linux/errno.h>
11 #include <linux/types.h>
12 #include <linux/socket.h>
14 #include <linux/kernel.h>
16 #include <linux/string.h>
19 #include <linux/net.h>
23 #include <linux/netdevice.h>
26 #include <asm/uaccess.h>
27 #include <linux/fcntl.h>
139 skb_reset_network_header(skb);
145 skb->
protocol = ax25_type_trans(skb, ax25_dev->
dev);
158 static int ax25_check_dama_slave(ax25_dev *ax25_dev)
164 spin_lock(&ax25_list_lock);
170 spin_unlock(&ax25_list_lock);
175 static void ax25_dev_dama_on(ax25_dev *ax25_dev)
177 if (ax25_dev ==
NULL)
180 if (ax25_dev->dama.slave == 0)
181 ax25_kiss_cmd(ax25_dev, 5, 1);
183 ax25_dev->dama.slave = 1;
189 if (ax25_dev ==
NULL)
192 if (ax25_dev->dama.slave && !ax25_check_dama_slave(ax25_dev)) {
193 ax25_kiss_cmd(ax25_dev, 5, 0);
194 ax25_dev->dama.slave = 0;