hdlc.c (e730c15519d09ea528b4d2f1103681fa5937c0e6) | hdlc.c (e9dc86534051b78e41e5b746cccc291b57a3a311) |
---|---|
1/* 2 * Generic HDLC support routines for Linux 3 * 4 * Copyright (C) 1999 - 2006 Krzysztof Halasa <khc@pm.waw.pl> 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of version 2 of the GNU General Public License 8 * as published by the Free Software Foundation. --- 95 unchanged lines hidden (view full) --- 104static int hdlc_device_event(struct notifier_block *this, unsigned long event, 105 void *ptr) 106{ 107 struct net_device *dev = ptr; 108 hdlc_device *hdlc; 109 unsigned long flags; 110 int on; 111 | 1/* 2 * Generic HDLC support routines for Linux 3 * 4 * Copyright (C) 1999 - 2006 Krzysztof Halasa <khc@pm.waw.pl> 5 * 6 * This program is free software; you can redistribute it and/or modify it 7 * under the terms of version 2 of the GNU General Public License 8 * as published by the Free Software Foundation. --- 95 unchanged lines hidden (view full) --- 104static int hdlc_device_event(struct notifier_block *this, unsigned long event, 105 void *ptr) 106{ 107 struct net_device *dev = ptr; 108 hdlc_device *hdlc; 109 unsigned long flags; 110 int on; 111 |
112 if (dev->nd_net != &init_net) 113 return NOTIFY_DONE; 114 |
|
112 if (dev->get_stats != hdlc_get_stats) 113 return NOTIFY_DONE; /* not an HDLC device */ 114 115 if (event != NETDEV_CHANGE) 116 return NOTIFY_DONE; /* Only interrested in carrier changes */ 117 118 on = netif_carrier_ok(dev); 119 --- 268 unchanged lines hidden --- | 115 if (dev->get_stats != hdlc_get_stats) 116 return NOTIFY_DONE; /* not an HDLC device */ 117 118 if (event != NETDEV_CHANGE) 119 return NOTIFY_DONE; /* Only interrested in carrier changes */ 120 121 on = netif_carrier_ok(dev); 122 --- 268 unchanged lines hidden --- |