af_ax25.c (1b8d7ae42d02e483ad94035cca851e4f7fbecb40) af_ax25.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) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk)
8 * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk)

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

99/*
100 * Handle device status changes.
101 */
102static int ax25_device_event(struct notifier_block *this, unsigned long event,
103 void *ptr)
104{
105 struct net_device *dev = (struct net_device *)ptr;
106
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) Alan Cox GW4PTS (alan@lxorguk.ukuu.org.uk)
8 * Copyright (C) Jonathan Naylor G4KLX (g4klx@g4klx.demon.co.uk)

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

99/*
100 * Handle device status changes.
101 */
102static int ax25_device_event(struct notifier_block *this, unsigned long event,
103 void *ptr)
104{
105 struct net_device *dev = (struct net_device *)ptr;
106
107 if (dev->nd_net != &init_net)
108 return NOTIFY_DONE;
109
107 /* Reject non AX.25 devices */
108 if (dev->type != ARPHRD_AX25)
109 return NOTIFY_DONE;
110
111 switch (event) {
112 case NETDEV_UP:
113 ax25_dev_device_up(dev);
114 break;

--- 1922 unchanged lines hidden ---
110 /* Reject non AX.25 devices */
111 if (dev->type != ARPHRD_AX25)
112 return NOTIFY_DONE;
113
114 switch (event) {
115 case NETDEV_UP:
116 ax25_dev_device_up(dev);
117 break;

--- 1922 unchanged lines hidden ---