lapbether.c (e730c15519d09ea528b4d2f1103681fa5937c0e6) | lapbether.c (e9dc86534051b78e41e5b746cccc291b57a3a311) |
---|---|
1/* 2 * "LAPB via ethernet" driver release 001 3 * 4 * This code REQUIRES 2.1.15 or higher/ NET3.038 5 * 6 * This module: 7 * This module is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 380 unchanged lines hidden (view full) --- 389 * Called from notifier with RTNL held. 390 */ 391static int lapbeth_device_event(struct notifier_block *this, 392 unsigned long event, void *ptr) 393{ 394 struct lapbethdev *lapbeth; 395 struct net_device *dev = ptr; 396 | 1/* 2 * "LAPB via ethernet" driver release 001 3 * 4 * This code REQUIRES 2.1.15 or higher/ NET3.038 5 * 6 * This module: 7 * This module is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License --- 380 unchanged lines hidden (view full) --- 389 * Called from notifier with RTNL held. 390 */ 391static int lapbeth_device_event(struct notifier_block *this, 392 unsigned long event, void *ptr) 393{ 394 struct lapbethdev *lapbeth; 395 struct net_device *dev = ptr; 396 |
397 if (dev->nd_net != &init_net) 398 return NOTIFY_DONE; 399 |
|
397 if (!dev_is_ethdev(dev)) 398 return NOTIFY_DONE; 399 400 switch (event) { 401 case NETDEV_UP: 402 /* New ethernet device -> new LAPB interface */ 403 if (lapbeth_get_x25_dev(dev) == NULL) 404 lapbeth_new_device(dev); --- 64 unchanged lines hidden --- | 400 if (!dev_is_ethdev(dev)) 401 return NOTIFY_DONE; 402 403 switch (event) { 404 case NETDEV_UP: 405 /* New ethernet device -> new LAPB interface */ 406 if (lapbeth_get_x25_dev(dev) == NULL) 407 lapbeth_new_device(dev); --- 64 unchanged lines hidden --- |