18 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
|
*/ |
20 |
|
|
21 |
– |
#include <linux/kernel.h> |
21 |
|
#include <linux/module.h> |
22 |
|
#include <linux/version.h> |
23 |
+ |
|
24 |
+ |
#ifdef CONFIG_MODVERSIONS |
25 |
+ |
#define MODVERSIONS |
26 |
+ |
#include <linux/modversions.h> |
27 |
+ |
#endif |
28 |
+ |
|
29 |
+ |
#ifdef CONFIG_SMP |
30 |
+ |
#define __SMP__ |
31 |
+ |
#endif |
32 |
+ |
|
33 |
|
#include <linux/miscdevice.h> |
34 |
|
#include <linux/netdevice.h> |
35 |
|
#include <linux/etherdevice.h> |
45 |
|
#include <net/ip.h> |
46 |
|
#include <asm/uaccess.h> |
47 |
|
|
48 |
+ |
MODULE_AUTHOR("Christian Bauer"); |
49 |
+ |
MODULE_DESCRIPTION("Pseudo ethernet device for emulators"); |
50 |
+ |
|
51 |
|
/* Compatibility glue */ |
52 |
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0) |
53 |
|
#define LINUX_24 |
150 |
|
* Deinitialize module |
151 |
|
*/ |
152 |
|
|
153 |
< |
int cleanup_module(void) |
153 |
> |
void cleanup_module(void) |
154 |
|
{ |
143 |
– |
int ret; |
144 |
– |
|
155 |
|
/* Unregister driver */ |
156 |
< |
ret = misc_deregister(&sheep_net_device); |
156 |
> |
misc_deregister(&sheep_net_device); |
157 |
|
D(bug("Sheep net driver removed\n")); |
148 |
– |
return ret; |
158 |
|
} |
159 |
|
|
160 |
|
|