20 #include <linux/kernel.h>
21 #include <linux/netdevice.h>
23 #include <linux/slab.h>
25 #include <linux/if_arp.h>
32 unsigned short frametype;
38 frametype = skb->
data[2];
39 lci = ((skb->
data[0] << 8) & 0xF00) + ((skb->
data[1] << 0) & 0x0FF);
56 skb_reset_transport_header(skb);
61 queued = !sk_add_backlog(sk, skb, sk->
sk_rcvbuf);
103 if (!net_eq(dev_net(dev), &
init_net))
121 if (!pskb_may_pull(skb, 1))
124 switch (skb->
data[0]) {
128 if (x25_receive_data(skb, nb)) {
154 switch (nb->
dev->type) {
164 #if IS_ENABLED(CONFIG_LLC)
183 #if IS_ENABLED(CONFIG_LLC)
208 skb_reset_network_header(skb);
210 switch (nb->
dev->type) {
216 #if IS_ENABLED(CONFIG_LLC)