294 |
|
sg_set_error(SG_ERROR_UNSUPPORTED, "Cygwin"); |
295 |
|
return NULL; |
296 |
|
#endif |
297 |
+ |
#ifdef HPUX |
298 |
+ |
sg_set_error(SG_ERROR_UNSUPPORTED, "HP-UX"); |
299 |
+ |
return NULL; |
300 |
+ |
#endif |
301 |
|
|
302 |
|
*entries=interfaces; |
303 |
|
|
675 |
|
network_iface_stat_ptr->speed = ethcmd.speed; |
676 |
|
|
677 |
|
switch (ethcmd.duplex) { |
678 |
< |
case 0x00: |
678 |
> |
case DUPLEX_FULL: |
679 |
|
network_iface_stat_ptr->dup = SG_IFACE_DUPLEX_FULL; |
680 |
|
break; |
681 |
< |
case 0x01: |
681 |
> |
case DUPLEX_HALF: |
682 |
|
network_iface_stat_ptr->dup = SG_IFACE_DUPLEX_HALF; |
683 |
|
break; |
684 |
|
default: |
695 |
|
close(sock); |
696 |
|
fclose(f); |
697 |
|
#endif |
698 |
+ |
#ifdef CYGWIN |
699 |
+ |
sg_set_error(SG_ERROR_UNSUPPORTED, "Cygwin"); |
700 |
+ |
return NULL; |
701 |
+ |
#endif |
702 |
+ |
#ifdef HPUX |
703 |
+ |
sg_set_error(SG_ERROR_UNSUPPORTED, "HP-UX"); |
704 |
+ |
return NULL; |
705 |
+ |
#endif |
706 |
+ |
|
707 |
|
*entries = ifaces; |
708 |
|
return network_iface_stats; |
709 |
|
} |