af_x25.c (1b8d7ae42d02e483ad94035cca851e4f7fbecb40) | af_x25.c (e9dc86534051b78e41e5b746cccc291b57a3a311) |
---|---|
1/* 2 * X.25 Packet Layer release 002 3 * 4 * This is ALPHA test software. This code may break your machine, 5 * randomly fail to work with new releases, misbehave and/or generally 6 * screw up. It might even work. 7 * 8 * This code REQUIRES 2.1.15 or higher --- 177 unchanged lines hidden (view full) --- 186 * Handle device status changes. 187 */ 188static int x25_device_event(struct notifier_block *this, unsigned long event, 189 void *ptr) 190{ 191 struct net_device *dev = ptr; 192 struct x25_neigh *nb; 193 | 1/* 2 * X.25 Packet Layer release 002 3 * 4 * This is ALPHA test software. This code may break your machine, 5 * randomly fail to work with new releases, misbehave and/or generally 6 * screw up. It might even work. 7 * 8 * This code REQUIRES 2.1.15 or higher --- 177 unchanged lines hidden (view full) --- 186 * Handle device status changes. 187 */ 188static int x25_device_event(struct notifier_block *this, unsigned long event, 189 void *ptr) 190{ 191 struct net_device *dev = ptr; 192 struct x25_neigh *nb; 193 |
194 if (dev->nd_net != &init_net) 195 return NOTIFY_DONE; 196 |
|
194 if (dev->type == ARPHRD_X25 195#if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE) 196 || dev->type == ARPHRD_ETHER 197#endif 198 ) { 199 switch (event) { 200 case NETDEV_UP: 201 x25_link_device_up(dev); --- 1484 unchanged lines hidden --- | 197 if (dev->type == ARPHRD_X25 198#if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE) 199 || dev->type == ARPHRD_ETHER 200#endif 201 ) { 202 switch (event) { 203 case NETDEV_UP: 204 x25_link_device_up(dev); --- 1484 unchanged lines hidden --- |