patch-2.1.15 linux/net/appletalk/aarp.c
Next file: linux/net/appletalk/ddp.c
Previous file: linux/net/Config.in
Back to the patch index
Back to the overall index
- Lines: 113
- Date:
Thu Dec 12 16:54:22 1996
- Orig file:
v2.1.14/linux/net/appletalk/aarp.c
- Orig date:
Tue Oct 29 19:58:48 1996
diff -u --recursive --new-file v2.1.14/linux/net/appletalk/aarp.c linux/net/appletalk/aarp.c
@@ -115,8 +115,7 @@
skb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
eah = (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp));
skb->arp = 1;
- skb->free = 1;
- skb->dev = a->dev;
+ skb->dev = dev;
/*
* Set up the ARP.
@@ -149,8 +148,9 @@
/*
* Send it.
*/
-
- dev_queue_xmit(skb, dev, SOPRI_NORMAL);
+
+ skb->priority = SOPRI_NORMAL;
+ dev_queue_xmit(skb);
/*
* Update the sending count
@@ -175,7 +175,6 @@
skb_reserve(skb,dev->hard_header_len+aarp_dl->header_length);
eah = (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp));
skb->arp = 1;
- skb->free = 1;
skb->dev = dev;
/*
@@ -212,8 +211,8 @@
/*
* Send it.
*/
-
- dev_queue_xmit(skb, dev, SOPRI_NORMAL);
+ skb->priority = SOPRI_NORMAL;
+ dev_queue_xmit(skb);
}
@@ -239,7 +238,6 @@
eah = (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp));
skb->arp = 1;
- skb->free = 1;
skb->dev = dev;
/*
@@ -273,8 +271,8 @@
/*
* Send it.
*/
-
- dev_queue_xmit(skb, dev, SOPRI_NORMAL);
+ skb->priority = SOPRI_NORMAL;
+ dev_queue_xmit(skb);
}
@@ -467,9 +465,11 @@
skb->data[2]=ft;
if(skb->sk==NULL)
- dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
+ skb->priority = SOPRI_NORMAL;
else
- dev_queue_xmit(skb, skb->dev, skb->sk->priority);
+ skb->priority = skb->sk->priority;
+ skb->dev = dev;
+ dev_queue_xmit(skb);
return 1;
}
@@ -497,9 +497,10 @@
{
ddp_dl->datalink_header(ddp_dl, skb, ddp_eth_multicast);
if(skb->sk==NULL)
- dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
+ skb->priority = SOPRI_NORMAL;
else
- dev_queue_xmit(skb, skb->dev, skb->sk->priority);
+ skb->priority = skb->sk->priority;
+ dev_queue_xmit(skb);
restore_flags(flags);
return 1;
}
@@ -513,9 +514,10 @@
a->expires_at=jiffies+AARP_EXPIRY_TIME*10;
ddp_dl->datalink_header(ddp_dl, skb, a->hwaddr);
if(skb->sk==NULL)
- dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
+ skb->priority = SOPRI_NORMAL;
else
- dev_queue_xmit(skb, skb->dev, skb->sk->priority);
+ skb->priority = skb->sk->priority;
+ dev_queue_xmit(skb);
restore_flags(flags);
return 1;
}
@@ -621,9 +623,10 @@
a->expires_at=jiffies+AARP_EXPIRY_TIME*10;
ddp_dl->datalink_header(ddp_dl,skb,a->hwaddr);
if(skb->sk==NULL)
- dev_queue_xmit(skb, skb->dev, SOPRI_NORMAL);
+ skb->priority = SOPRI_NORMAL;
else
- dev_queue_xmit(skb, skb->dev, skb->sk->priority);
+ skb->priority = skb->sk->priority;
+ dev_queue_xmit(skb);
}
}
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov