getifmaddrs
extern int getifmaddrs(struct ifmaddrs **);
if (getifmaddrs(&ifmap) != 0) {
if (aflag && getifmaddrs(&ifmap) != 0)