scan_interfaces
static int scan_interfaces(int *, int *);
if (scan_interfaces(&have_v4, &have_v6) == -1) {