Lines 62-68
Link Here
|
62 |
static int VNetNetifStartXmit(struct sk_buff *skb, struct net_device *dev); |
62 |
static int VNetNetifStartXmit(struct sk_buff *skb, struct net_device *dev); |
63 |
static struct net_device_stats *VNetNetifGetStats(struct net_device *dev); |
63 |
static struct net_device_stats *VNetNetifGetStats(struct net_device *dev); |
64 |
static int VNetNetifSetMAC(struct net_device *dev, void *addr); |
64 |
static int VNetNetifSetMAC(struct net_device *dev, void *addr); |
|
|
65 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 42, 0) || (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)) |
65 |
static void VNetNetifSetMulticast(struct net_device *dev); |
66 |
static void VNetNetifSetMulticast(struct net_device *dev); |
|
|
67 |
#endif |
66 |
#if 0 |
68 |
#if 0 |
67 |
static void VNetNetifTxTimeout(struct net_device *dev); |
69 |
static void VNetNetifTxTimeout(struct net_device *dev); |
68 |
#endif |
70 |
#endif |
Lines 131-137
Link Here
|
131 |
.ndo_stop = VNetNetifClose, |
133 |
.ndo_stop = VNetNetifClose, |
132 |
.ndo_get_stats = VNetNetifGetStats, |
134 |
.ndo_get_stats = VNetNetifGetStats, |
133 |
.ndo_set_mac_address = VNetNetifSetMAC, |
135 |
.ndo_set_mac_address = VNetNetifSetMAC, |
|
|
136 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 42, 0) || (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)) |
134 |
.ndo_set_multicast_list = VNetNetifSetMulticast, |
137 |
.ndo_set_multicast_list = VNetNetifSetMulticast, |
|
|
138 |
#endif |
135 |
/* |
139 |
/* |
136 |
* We cannot stuck... If someone will report problems under |
140 |
* We cannot stuck... If someone will report problems under |
137 |
* low memory conditions or some such, we should enable it. |
141 |
* low memory conditions or some such, we should enable it. |
Lines 611-622
Link Here
|
611 |
* |
615 |
* |
612 |
*---------------------------------------------------------------------- |
616 |
*---------------------------------------------------------------------- |
613 |
*/ |
617 |
*/ |
614 |
|
618 |
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 42, 0) || (LINUX_VERSION_CODE < KERNEL_VERSION(3, 2, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 0, 0)) |
615 |
void |
619 |
void |
616 |
VNetNetifSetMulticast(struct net_device *dev) // IN: unused |
620 |
VNetNetifSetMulticast(struct net_device *dev) // IN: unused |
617 |
{ |
621 |
{ |
618 |
} |
622 |
} |
619 |
|
623 |
#endif |
620 |
|
624 |
|
621 |
/* |
625 |
/* |
622 |
*---------------------------------------------------------------------- |
626 |
*---------------------------------------------------------------------- |