]> err.no Git - linux-2.6/blobdiff - include/net/ax25.h
Automatic merge of /spare/repo/netdev-2.6 branch amd8111
[linux-2.6] / include / net / ax25.h
index 875edbba396d2601fce49e8e1c88f90195b56698..9e6368a5454760fa9bc1c56fc691b110474094b3 100644 (file)
@@ -220,6 +220,14 @@ static __inline__ void ax25_cb_put(ax25_cb *ax25)
        }
 }
 
+static inline unsigned short ax25_type_trans(struct sk_buff *skb, struct net_device *dev)
+{
+       skb->dev      = dev;
+       skb->pkt_type = PACKET_HOST;
+       skb->mac.raw  = skb->data;
+       return htons(ETH_P_AX25);
+}
+
 /* af_ax25.c */
 extern struct hlist_head ax25_list;
 extern spinlock_t ax25_list_lock;