aarp.c (e730c15519d09ea528b4d2f1103681fa5937c0e6) aarp.c (e9dc86534051b78e41e5b746cccc291b57a3a311)
1/*
2 * AARP: An implementation of the AppleTalk AARP protocol for
3 * Ethernet 'ELAP'.
4 *
5 * Alan Cox <Alan.Cox@linux.org>
6 *
7 * This doesn't fit cleanly with the IP arp. Potentially we can use
8 * the generic neighbour discovery code to clean this up.

--- 319 unchanged lines hidden (view full) ---

328
329/* Network device notifier chain handler. */
330static int aarp_device_event(struct notifier_block *this, unsigned long event,
331 void *ptr)
332{
333 struct net_device *dev = ptr;
334 int ct;
335
1/*
2 * AARP: An implementation of the AppleTalk AARP protocol for
3 * Ethernet 'ELAP'.
4 *
5 * Alan Cox <Alan.Cox@linux.org>
6 *
7 * This doesn't fit cleanly with the IP arp. Potentially we can use
8 * the generic neighbour discovery code to clean this up.

--- 319 unchanged lines hidden (view full) ---

328
329/* Network device notifier chain handler. */
330static int aarp_device_event(struct notifier_block *this, unsigned long event,
331 void *ptr)
332{
333 struct net_device *dev = ptr;
334 int ct;
335
336 if (dev->nd_net != &init_net)
337 return NOTIFY_DONE;
338
336 if (event == NETDEV_DOWN) {
337 write_lock_bh(&aarp_lock);
338
339 for (ct = 0; ct < AARP_HASH_SIZE; ct++) {
340 __aarp_expire_device(&resolved[ct], dev);
341 __aarp_expire_device(&unresolved[ct], dev);
342 __aarp_expire_device(&proxies[ct], dev);
343 }

--- 734 unchanged lines hidden ---
339 if (event == NETDEV_DOWN) {
340 write_lock_bh(&aarp_lock);
341
342 for (ct = 0; ct < AARP_HASH_SIZE; ct++) {
343 __aarp_expire_device(&resolved[ct], dev);
344 __aarp_expire_device(&unresolved[ct], dev);
345 __aarp_expire_device(&proxies[ct], dev);
346 }

--- 734 unchanged lines hidden ---