af_rose.c (1b8d7ae42d02e483ad94035cca851e4f7fbecb40) | af_rose.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 (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) --- 183 unchanged lines hidden (view full) --- 192/* 193 * Handle device status changes. 194 */ 195static int rose_device_event(struct notifier_block *this, unsigned long event, 196 void *ptr) 197{ 198 struct net_device *dev = (struct net_device *)ptr; 199 | 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 (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk) 8 * Copyright (C) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk) --- 183 unchanged lines hidden (view full) --- 192/* 193 * Handle device status changes. 194 */ 195static int rose_device_event(struct notifier_block *this, unsigned long event, 196 void *ptr) 197{ 198 struct net_device *dev = (struct net_device *)ptr; 199 |
200 if (dev->nd_net != &init_net) 201 return NOTIFY_DONE; 202 |
|
200 if (event != NETDEV_DOWN) 201 return NOTIFY_DONE; 202 203 switch (dev->type) { 204 case ARPHRD_ROSE: 205 rose_kill_by_device(dev); 206 break; 207 case ARPHRD_AX25: --- 1440 unchanged lines hidden --- | 203 if (event != NETDEV_DOWN) 204 return NOTIFY_DONE; 205 206 switch (dev->type) { 207 case ARPHRD_ROSE: 208 rose_kill_by_device(dev); 209 break; 210 case ARPHRD_AX25: --- 1440 unchanged lines hidden --- |