Performance enhancement

Avoid calling getsockopt on ioctl calls that do not have a request
number of SIOCGIFHWADDR.