af_netrom.c (1b8d7ae42d02e483ad94035cca851e4f7fbecb40) af_netrom.c (e9dc86534051b78e41e5b746cccc291b57a3a311)
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk)
8 * Copyright Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk)

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

101
102/*
103 * Handle device status changes.
104 */
105static int nr_device_event(struct notifier_block *this, unsigned long event, void *ptr)
106{
107 struct net_device *dev = (struct net_device *)ptr;
108
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * Copyright Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk)
8 * Copyright Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk)

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

101
102/*
103 * Handle device status changes.
104 */
105static int nr_device_event(struct notifier_block *this, unsigned long event, void *ptr)
106{
107 struct net_device *dev = (struct net_device *)ptr;
108
109 if (dev->nd_net != &init_net)
110 return NOTIFY_DONE;
111
109 if (event != NETDEV_DOWN)
110 return NOTIFY_DONE;
111
112 nr_kill_by_device(dev);
113 nr_rt_device_down(dev);
114
115 return NOTIFY_DONE;
116}

--- 1397 unchanged lines hidden ---
112 if (event != NETDEV_DOWN)
113 return NOTIFY_DONE;
114
115 nr_kill_by_device(dev);
116 nr_rt_device_down(dev);
117
118 return NOTIFY_DONE;
119}

--- 1397 unchanged lines hidden ---