Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforge.net>2011-02-18 02:40:10 +0300
committerJustin Maggard <jmaggard@users.sourceforge.net>2011-02-18 02:40:10 +0300
commit518f9654e932c4d794891ae01be03d475781c997 (patch)
treea747453e7d825bb05ac0899c3102dd5ed3dc8979
parent4d6f4a171f94f2334072f8f7d42ccca15dc8e073 (diff)
* Log a warning message if we fail to find the broadcast address on the interface used for TiVo beacons.
-rw-r--r--tivo_beacon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tivo_beacon.c b/tivo_beacon.c
index 2ed2bf9..e2a1631 100644
--- a/tivo_beacon.c
+++ b/tivo_beacon.c
@@ -120,12 +120,13 @@ getBcastAddress(void)
rval = ioctl(s, SIOCGIFBRDADDR, &ifr);
if( rval < 0 )
{
+ DPRINTF(E_ERROR, L_TIVO, "Failed to get broadcast addr on %s [%s]\n", ifr.ifr_name, strerror(errno));
close(s);
return INADDR_BROADCAST;
}
memcpy(&sin, &ifr.ifr_broadaddr, sizeof(sin));
close(s);
- DPRINTF(E_DEBUG, L_TIVO, "Interface: %s broadcast addr %s \n", ifr.ifr_name, inet_ntoa(sin.sin_addr));
+ DPRINTF(E_DEBUG, L_TIVO, "Interface: %s broadcast addr %s\n", ifr.ifr_name, inet_ntoa(sin.sin_addr));
return ntohl((uint32_t)(sin.sin_addr.s_addr));
}
}