X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fhdlc.h;h=503194e62fe166cec472e5612f6110926f4f1f06;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=41e79a7f5b5363213f479bd64e036f400157f8c7;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/include/linux/hdlc.h b/include/linux/hdlc.h index 41e79a7f5..503194e62 100644 --- a/include/linux/hdlc.h +++ b/include/linux/hdlc.h @@ -243,11 +243,15 @@ static __inline__ struct net_device_stats *hdlc_stats(struct net_device *dev) static __inline__ unsigned short hdlc_type_trans(struct sk_buff *skb, struct net_device *dev) { - hdlc_device *hdlc = dev_to_hdlc(skb->dev); + hdlc_device *hdlc = dev_to_hdlc(dev); + + skb->mac.raw = skb->data; + skb->dev = dev; + if (hdlc->proto.type_trans) return hdlc->proto.type_trans(skb, dev); else - return __constant_htons(ETH_P_HDLC); + return htons(ETH_P_HDLC); } #endif /* __KERNEL */