50 |
|
typedef __uint32_t u32; |
51 |
|
#include <linux/ethtool.h> |
52 |
|
#include <linux/sockios.h> |
53 |
+ |
#include <unistd.h> |
54 |
|
#endif |
55 |
|
#ifdef ALLBSD |
56 |
|
#include <sys/types.h> |
576 |
|
network_iface_stat_ptr = network_iface_stats + ifaces; |
577 |
|
network_iface_stat_ptr->interface_name = strdup(name); |
578 |
|
network_iface_stat_ptr->speed = ethcmd->speed; |
579 |
< |
network_iface_stat_ptr->dup = UNKNOWN_DUPEX; |
579 |
> |
network_iface_stat_ptr->dup = UNKNOWN_DUPLEX; |
580 |
|
if(ethcmd->duplex == 0x00){ |
581 |
|
network_iface_stat_ptr->dup = FULL_DUPLEX; |
582 |
|
} |