if (GNUNET_OK !=
proc (proc_cls, results[i].pretty_name, results[i].is_default,
&results[i].address,
- results[i].flags & ENUMNICS3_MASK_OK ? &results[i].mask : NULL,
results[i].
flags & ENUMNICS3_BCAST_OK ? &results[i].broadcast : NULL,
+ results[i].flags & ENUMNICS3_MASK_OK ? &results[i].mask : NULL,
results[i].addr_size))
break;
}
const char *start;
char ifc[12];
char addrstr[128];
+ char bcstr[128];
FILE *f;
int have_ifc;
struct sockaddr_in a4;
while (('\0' != *start) && (isspace (*start)))
start++;
if ( /* Linux */
- (1 == SSCANF (start, "inet addr:%127s", addrstr)) ||
+ (2 == SSCANF (start, "inet addr:%127s Bcast:%127s", addrstr, bcstr)) ||
(1 == SSCANF (start, "inet6 addr:%127s", addrstr)) ||
/* Solaris, OS X */
(1 == SSCANF (start, "inet %127s", addrstr)) ||