back out last change

This commit is contained in:
Doug MacEachern 2006-03-07 00:59:03 +00:00
parent 4cf7b4ed65
commit 372c09119d
5 changed files with 1 additions and 7 deletions

View File

@ -467,8 +467,7 @@ typedef struct {
netmask,
flags,
mtu,
metric,
speed;
metric;
} sigar_net_interface_config_t;
SIGAR_DECLARE(int)

View File

@ -1756,7 +1756,6 @@ int sigar_net_interface_config_get(sigar_t *sigar, const char *name,
ifm = iter.data.ifm;
SIGAR_SSTRCPY(ifconfig->name, name);
ifconfig->speed = SIGAR_FIELD_NOTIMPL;
sdl = (struct sockaddr_dl *)(ifm + 1);
sigar_hwaddr_format(ifconfig->hwaddr,

View File

@ -1981,7 +1981,6 @@ int sigar_get_ifentry_config(sigar_t *sigar,
}
ifconfig->mtu = ifr->dwMtu;
ifconfig->speed = ifr->dwSpeed;
sigar_hwaddr_format(ifconfig->hwaddr,
ifr->bPhysAddr);

View File

@ -1206,7 +1206,6 @@ int sigar_net_interface_config_get(sigar_t *sigar, const char *name,
SIGAR_SSTRCPY(ifconfig->name, name);
SIGAR_SSTRCPY(ifr.ifr_name, name);
ifconfig->speed = SIGAR_FIELD_NOTIMPL;
#define ifr_s_addr(ifr) \
((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr

View File

@ -256,8 +256,6 @@ sigar_net_interface_config_get(sigar_t *sigar,
SIGAR_SSTRCPY(ifconfig->description,
ifconfig->name);
ifconfig->speed = SIGAR_FIELD_NOTIMPL;
hwaddr_lookup(sigar, ifconfig, i);
if (flags & IFF_POINTTOPOINT) {