diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index 038fae0..e297dff 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -185,7 +185,9 @@ OpenAndConfSSDPReceiveSocket(int ipv6) if(setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE, lan_addrs.lh_first->ifname, strlen(lan_addrs.lh_first->ifname)) < 0) - syslog(LOG_WARNING, "setsockopt(udp, SO_BINDTODEVICE): %m"); + syslog(LOG_WARNING, "%s: setsockopt(udp%s, SO_BINDTODEVICE, %s): %m", + "OpenAndConfSSDPReceiveSocket", ipv6 ? "6" : "", + lan_addrs.lh_first->ifname); } #endif /* defined(SO_BINDTODEVICE) && !defined(MULTIPLE_EXTERNAL_IP) */ diff --git a/miniupnpd/miniupnpd.c b/miniupnpd/miniupnpd.c index 546d16a..e876030 100644 --- a/miniupnpd/miniupnpd.c +++ b/miniupnpd/miniupnpd.c @@ -378,7 +378,8 @@ OpenAndConfHTTPSocket(unsigned short * port) if(setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE, lan_addrs.lh_first->ifname, strlen(lan_addrs.lh_first->ifname)) < 0) - syslog(LOG_WARNING, "setsockopt(udp, SO_BINDTODEVICE): %m"); + syslog(LOG_WARNING, "setsockopt(http, SO_BINDTODEVICE, %s): %m", + lan_addrs.lh_first->ifname); } #endif /* defined(SO_BINDTODEVICE) && !defined(MULTIPLE_EXTERNAL_IP) */