# | Line 607 | Line 607 | sg_network_iface_stats *sg_get_network_iface_stats(int | |
---|---|---|
607 | continue; | |
608 | } | |
609 | ||
610 | < | /* Only intrested in the first 4 bits) - Assuming only ETHER devices */ |
611 | < | x = ifmed.ifm_active & 0x0f; |
610 | > | /* Assuming only ETHER devices */ |
611 | > | x = IFM_SUBTYPE(ifmed.ifm_active); |
612 | switch(x){ | |
613 | /* 10 Mbit connections. Speedy :) */ | |
614 | case(IFM_10_T): | |
# | Line 618 | Line 618 | sg_network_iface_stats *sg_get_network_iface_stats(int | |
618 | case(IFM_10_FL): | |
619 | network_iface_stat_ptr->speed = 10; | |
620 | break; | |
621 | < | /* 100 Mbit conneections */ |
621 | > | /* 100 Mbit connections */ |
622 | case(IFM_100_TX): | |
623 | case(IFM_100_FX): | |
624 | case(IFM_100_T4): |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |