X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fnet%2Fax25.h;h=828a3a93dda10e07ce851476894296f5b7e4a68f;hb=6d1d07e41a1de478a0da3cc14b4a8054ef09931c;hp=875edbba396d2601fce49e8e1c88f90195b56698;hpb=29c4be51e3fd52205d848248d38924941f22ca0e;p=linux-2.6 diff --git a/include/net/ax25.h b/include/net/ax25.h index 875edbba39..828a3a93dd 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h @@ -220,6 +220,14 @@ static __inline__ void ax25_cb_put(ax25_cb *ax25) } } +static inline __be16 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;