17 #include <linux/errno.h>
18 #include <linux/types.h>
19 #include <linux/socket.h>
21 #include <linux/kernel.h>
23 #include <linux/string.h>
25 #include <linux/net.h>
28 #include <linux/netdevice.h>
32 #include <asm/uaccess.h>
33 #include <linux/fcntl.h>
77 ax25->
sk->sk_state_change(ax25->
sk);
106 static int ax25_std_state2_machine(
ax25_cb *ax25,
struct sk_buff *skb,
int frametype,
int pf,
int type)
144 static int ax25_std_state3_machine(
ax25_cb *ax25,
struct sk_buff *skb,
int frametype,
int ns,
int nr,
int pf,
int type)
226 if (ns == ax25->
vr) {
269 static int ax25_std_state4_machine(
ax25_cb *ax25,
struct sk_buff *skb,
int frametype,
int ns,
int nr,
int pf,
int type)
317 if (ax25->
vs == ax25->
va) {
346 if (ax25->
vs == ax25->
va) {
381 if (ns == ax25->
vr) {
424 int queued = 0, frametype,
ns,
nr,
pf;
428 switch (ax25->
state) {
430 queued = ax25_std_state1_machine(ax25, skb, frametype, pf, type);
433 queued = ax25_std_state2_machine(ax25, skb, frametype, pf, type);
436 queued = ax25_std_state3_machine(ax25, skb, frametype, ns, nr, pf, type);
439 queued = ax25_std_state4_machine(ax25, skb, frametype, ns, nr, pf, type);