From 214deacb11aa9176f00eaac65450c8c9a5a6026c Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 11 May 2023 01:19:22 +0200 Subject: [PATCH] improve debug output in ProcessSSDPRequest() see #655 --- miniupnpd/minissdp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index a672c71..2c042f1 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -914,7 +914,11 @@ ProcessSSDPRequest(int s, unsigned short http_port) errno != EWOULDBLOCK && errno != EINTR) { +#if defined(IP_RECVIF) || defined(IP_PKTINFO) + syslog(LOG_ERR, "recvmsg(udp): %m"); +#else syslog(LOG_ERR, "recvfrom(udp): %m"); +#endif } return; }