patch-1.3.12 linux/net/802/tr.c
Next file: linux/net/core/dev.c
Previous file: linux/lib/string.c
Back to the patch index
Back to the overall index
-  Lines: 25
 -  Date:
Wed Jul 19 14:52:34 1995
 -  Orig file: 
v1.3.11/linux/net/802/tr.c
 -  Orig date: 
Fri Jul  7 08:54:56 1995
 
diff -u --recursive --new-file v1.3.11/linux/net/802/tr.c linux/net/802/tr.c
@@ -38,11 +38,12 @@
 #define RIF_CHECK_INTERVAL 60*HZ
 static struct timer_list rif_timer={ NULL,NULL,RIF_CHECK_INTERVAL,0L,rif_check_expire };
 
-int tr_header(unsigned char *buff, struct device *dev, unsigned short type,
-              void *daddr, void *saddr, unsigned len, struct sk_buff *skb) {
+int tr_header(struct sk_buff *skb, struct device *dev, unsigned short type,
+              void *daddr, void *saddr, unsigned len) 
+{
 
 	struct trh_hdr *trh=(struct trh_hdr *)skb_push(skb,dev->hard_header_len);
-	struct trllc *trllc=(struct trllc *)(buff+sizeof(struct trh_hdr));
+	struct trllc *trllc=(struct trllc *)(trh+1);
 
 	trh->ac=AC;
 	trh->fc=LLC_FRAME;
@@ -91,6 +92,8 @@
 
 	struct trh_hdr *trh=(struct trh_hdr *)skb->data;
 	struct trllc *trllc=(struct trllc *)(skb->data+sizeof(struct trh_hdr));
+	
+	skb->mac.raw = skb->data;
 	
 	skb_pull(skb,dev->hard_header_len);
 	
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