bpqether.c (e730c15519d09ea528b4d2f1103681fa5937c0e6) | bpqether.c (e9dc86534051b78e41e5b746cccc291b57a3a311) |
---|---|
1/* 2 * G8BPQ compatible "AX.25 via ethernet" driver release 004 3 * 4 * This code REQUIRES 2.0.0 or higher/ NET3.029 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 --- 549 unchanged lines hidden (view full) --- 558 559/* 560 * Handle device status changes. 561 */ 562static int bpq_device_event(struct notifier_block *this,unsigned long event, void *ptr) 563{ 564 struct net_device *dev = (struct net_device *)ptr; 565 | 1/* 2 * G8BPQ compatible "AX.25 via ethernet" driver release 004 3 * 4 * This code REQUIRES 2.0.0 or higher/ NET3.029 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 --- 549 unchanged lines hidden (view full) --- 558 559/* 560 * Handle device status changes. 561 */ 562static int bpq_device_event(struct notifier_block *this,unsigned long event, void *ptr) 563{ 564 struct net_device *dev = (struct net_device *)ptr; 565 |
566 if (dev->nd_net != &init_net) 567 return NOTIFY_DONE; 568 |
|
566 if (!dev_is_ethdev(dev)) 567 return NOTIFY_DONE; 568 569 switch (event) { 570 case NETDEV_UP: /* new ethernet device -> new BPQ interface */ 571 if (bpq_get_ax25_dev(dev) == NULL) 572 bpq_new_device(dev); 573 break; --- 66 unchanged lines hidden --- | 569 if (!dev_is_ethdev(dev)) 570 return NOTIFY_DONE; 571 572 switch (event) { 573 case NETDEV_UP: /* new ethernet device -> new BPQ interface */ 574 if (bpq_get_ax25_dev(dev) == NULL) 575 bpq_new_device(dev); 576 break; --- 66 unchanged lines hidden --- |