patch-1.3.6 linux/net/802/tr.c

Next file: linux/net/Changes
Previous file: linux/net/802/psnap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.5/linux/net/802/tr.c linux/net/802/tr.c
@@ -41,9 +41,9 @@
 int tr_header(unsigned char *buff, struct device *dev, unsigned short type,
               void *daddr, void *saddr, unsigned len, struct sk_buff *skb) {
 
-	struct trh_hdr *trh=(struct trh_hdr *)buff;
+	struct trh_hdr *trh=(struct trh_hdr *)skb_push(skb,dev->hard_header_len);
 	struct trllc *trllc=(struct trllc *)(buff+sizeof(struct trh_hdr));
-	
+
 	trh->ac=AC;
 	trh->fc=LLC_FRAME;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this