patch-2.4.6 linux/net/appletalk/aarp.c
Next file: linux/net/atm/clip.c
Previous file: linux/net/README
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Fri Jun 29 19:38:26 2001
- Orig file:
v2.4.5/linux/net/appletalk/aarp.c
- Orig date:
Mon Jan 22 13:32:10 2001
diff -u --recursive --new-file v2.4.5/linux/net/appletalk/aarp.c linux/net/appletalk/aarp.c
@@ -97,11 +97,7 @@
*/
static void __aarp_expire(struct aarp_entry *a)
{
- struct sk_buff *skb;
-
- while ((skb = skb_dequeue(&a->packet_queue)) != NULL)
- kfree_skb(skb);
-
+ skb_queue_purge(&a->packet_queue);
kfree(a);
}
@@ -844,9 +840,7 @@
}
static struct notifier_block aarp_notifier = {
- aarp_device_event,
- NULL,
- 0
+ notifier_call: aarp_device_event,
};
static char aarp_snap_id[] = { 0x00, 0x00, 0x00, 0x80, 0xF3 };
@@ -888,8 +882,8 @@
int len, ct;
len = sprintf(buffer,
- "%-10.10s ""%-10.10s""%-18.18s""%12.12s""%12.12s"" xmit_count status\n",
- "address","device","hw addr","last_sent", "expires");
+ "%-10.10s %-10.10s%-18.18s%12.12s%12.12s xmit_count status\n",
+ "address", "device", "hw addr", "last_sent", "expires");
spin_lock_bh(&aarp_lock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)