52 |
|
/* Stuff which could be defined by defining KERNEL, but |
53 |
|
* that would be a bad idea, so we'll just declare it here |
54 |
|
*/ |
55 |
+ |
#include <linux/version.h> |
56 |
+ |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) |
57 |
+ |
typedef __uint8_t __u8; |
58 |
+ |
typedef __uint16_t __u16; |
59 |
+ |
typedef __uint32_t __u32; |
60 |
+ |
typedef __uint64_t __u64; |
61 |
+ |
#else |
62 |
|
typedef __uint8_t u8; |
63 |
|
typedef __uint16_t u16; |
64 |
|
typedef __uint32_t u32; |
65 |
|
typedef __uint64_t u64; |
66 |
+ |
#endif |
67 |
|
#include <linux/ethtool.h> |
68 |
|
#include <linux/sockios.h> |
69 |
|
#include <unistd.h> |