From ff4569d2f989ac62e3d6793f0aa256d62fe06920 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Wed, 24 May 2017 11:11:37 +0200 Subject: [PATCH] fix previous commit. to be squashed --- miniupnpd/minissdp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index e8a781f..4dce070 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -200,19 +200,20 @@ OpenAndConfSSDPReceiveSocket(int ipv6) if(!ipv6) { if(setsockopt(s, IPPROTO_IP, IP_RECVIF, &on, sizeof(on)) < 0) { - syslog(LOG_WARNING, "setsockopt(udp, IPRECVIF): %m"); + syslog(LOG_WARNING, "setsockopt(udp, IP_RECVIF): %m"); } } #endif /* IP_RECVIF */ #ifdef IP_PKTINFO /* Linux */ if(!ipv6) { - if(setsockopt(s, IPPROTO_IP, IP_RECVIF, &on, sizeof(on)) < 0) + if(setsockopt(s, IPPROTO_IP, IP_PKTINFO, &on, sizeof(on)) < 0) { - syslog(LOG_WARNING, "setsockopt(udp, IPRECVIF): %m"); + syslog(LOG_WARNING, "setsockopt(udp, IP_PKTINFO): %m"); } } #endif /* IP_PKTINFO */ + /* TODO : for IPV6 */ if(!set_non_blocking(s)) {