{
case AF_INET:
mreq.imr_multiaddr = (((struct sockaddr_in*)maddr)->sin_addr);
-/* mreq.imr_interface.s_addr = ((struct sockaddr_in*)&iface->sin)->sin_addr.s_addr;*/
- mreq.imr_interface.s_addr = htonl(INADDR_ANY);
+ mreq.imr_interface.s_addr = ((struct sockaddr_in*)&iface->sin)->sin_addr.s_addr;
+/* mreq.imr_interface.s_addr = htonl(INADDR_ANY); */
if (setsockopt(iface->fd, IPPROTO_IP, IP_ADD_MEMBERSHIP,
(char *)&mreq, sizeof(mreq)) == -1) {
netsyslog(LOG_ERR,
if (addr->ss_family == AF_INET && outifaceipv4 != -1) {
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", outifaceipv4, stoa(addr));
+ printf("Found only interface %d for address: %s\n", outifaceipv4, stoa(addr));
#endif
return (&inter_list[outifaceipv4]);
}
if (addr->ss_family == AF_INET6 && outifaceipv6 != -1) {
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", outifaceipv6, stoa(addr));
+ printf("Found only interface %d for address: %s\n", outifaceipv6, stoa(addr));
#endif
return (&inter_list[outifaceipv6]);
}
if (amask == imask) {
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", i, stoa(addr));
+ printf("Found network local interface %d for address: %s\n", i, stoa(addr));
#endif
return (&inter_list[i]);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", i, stoa(addr));
+ printf("Found Link-Local interface %d for address: %s\n", i, stoa(addr));
#endif
return (&inter_list[i]);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", i, stoa(addr));
+ printf("Found Site-Local interface %d for address: %s\n", i, stoa(addr));
#endif
return (&inter_list[i]);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", i, stoa(addr));
+ printf("Found PPP interface %d for address: %s\n", i, stoa(addr));
#endif
return (&inter_list[i]);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", i, stoa(addr));
+ printf("Found PPP interface %d for address: %s\n", i, stoa(addr));
#endif
return (&inter_list[i]);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", i, stoa(addr));
+ printf("Found other interface %d for address: %s\n", i, stoa(addr));
#endif
return (&inter_list[i]);
}
continue;
#ifdef DEBUG
if (debug > 2)
- printf("Found interface %d for address: %s\n", i, stoa(addr));
+ printf("Found other interface %d for address: %s\n", i, stoa(addr));
#endif
return (&inter_list[i]);
}
if (amask == imask) {
#ifdef DEBUG
if (debug > 2)
- printf("Found *cast interface %d for address: %s\n", i, stoa(addr));
+ printf("Found network local *cast interface %d for address: %s\n", i, stoa(addr));
#endif
return (i);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found *cast interface %d for address: %s\n", i, stoa(addr));
+ printf("Found Link-Local *cast interface %d for address: %s\n", i, stoa(addr));
#endif
return (i);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found *cast interface %d for address: %s\n", i, stoa(addr));
+ printf("Found Site-Local *cast interface %d for address: %s\n", i, stoa(addr));
#endif
return (i);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found *cast interface %d for address: %s\n", i, stoa(addr));
+ printf("Found PPP *cast interface %d for address: %s\n", i, stoa(addr));
#endif
return (i);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found *cast interface %d for address: %s\n", i, stoa(addr));
+ printf("Found PPP *cast interface %d for address: %s\n", i, stoa(addr));
#endif
return (i);
}
{
#ifdef DEBUG
if (debug > 2)
- printf("Found *cast interface %d for address: %s\n", i, stoa(addr));
+ printf("Found non-local *cast interface %d for address: %s\n", i, stoa(addr));
#endif
return (i);
}
continue;
#ifdef DEBUG
if (debug > 2)
- printf("Found *cast interface %d for address: %s\n", i, stoa(addr));
+ printf("Found non-local *cast interface %d for address: %s\n", i, stoa(addr));
#endif
return (i);
}