Don't attempt SIOCGIFADDR/NETMASK on downed interfaces.
Don't attempt SIOCGIFADDR/NETMASK on downed interfaces.

Both of these ioctls return an error if the interface is down.

Also, lack of an IPv4 address/netmask should not be considered an error.

osier/netcf,seanbruno/fbsd-netcf,battlemidget/deprecated-mingw32-netcf,hallyn/netcf,seanbruno/fbsd-netcf,emaste/netcf,osier/netcf,seanbruno/fbsd-netcf,osier/netcf,hallyn/netcf,hallyn/netcf,emaste/netcf,battlemidget/deprecated-mingw32-netcf,emaste/netcf