ddp.c (e730c15519d09ea528b4d2f1103681fa5937c0e6) ddp.c (e9dc86534051b78e41e5b746cccc291b57a3a311)
1/*
2 * DDP: An implementation of the AppleTalk DDP protocol for
3 * Ethernet 'ELAP'.
4 *
5 * Alan Cox <Alan.Cox@linux.org>
6 *
7 * With more than a little assistance from
8 *

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

644 * A device event has occurred. Watch for devices going down and
645 * delete our use of them (iface and route).
646 */
647static int ddp_device_event(struct notifier_block *this, unsigned long event,
648 void *ptr)
649{
650 struct net_device *dev = ptr;
651
1/*
2 * DDP: An implementation of the AppleTalk DDP protocol for
3 * Ethernet 'ELAP'.
4 *
5 * Alan Cox <Alan.Cox@linux.org>
6 *
7 * With more than a little assistance from
8 *

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

644 * A device event has occurred. Watch for devices going down and
645 * delete our use of them (iface and route).
646 */
647static int ddp_device_event(struct notifier_block *this, unsigned long event,
648 void *ptr)
649{
650 struct net_device *dev = ptr;
651
652 if (dev->nd_net != &init_net)
653 return NOTIFY_DONE;
654
652 if (event == NETDEV_DOWN)
653 /* Discard any use of this */
654 atalk_dev_down(dev);
655
656 return NOTIFY_DONE;
657}
658
659/* ioctl calls. Shouldn't even need touching */

--- 1278 unchanged lines hidden ---
655 if (event == NETDEV_DOWN)
656 /* Discard any use of this */
657 atalk_dev_down(dev);
658
659 return NOTIFY_DONE;
660}
661
662/* ioctl calls. Shouldn't even need touching */

--- 1278 unchanged lines hidden ---