* Log a warning message if we fail to find the broadcast address on the interface used for TiVo beacons.
This commit is contained in:
parent
309499d378
commit
ea1695b0b5
@ -120,6 +120,7 @@ getBcastAddress(void)
|
|||||||
rval = ioctl(s, SIOCGIFBRDADDR, &ifr);
|
rval = ioctl(s, SIOCGIFBRDADDR, &ifr);
|
||||||
if( rval < 0 )
|
if( rval < 0 )
|
||||||
{
|
{
|
||||||
|
DPRINTF(E_ERROR, L_TIVO, "Failed to get broadcast addr on %s [%s]\n", ifr.ifr_name, strerror(errno));
|
||||||
close(s);
|
close(s);
|
||||||
return INADDR_BROADCAST;
|
return INADDR_BROADCAST;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user