$NetBSD: patch-other-subnets,v 1.1 2012/10/15 22:48:02 drochner Exp $

Allowing SSDP M-SEARCH from other subnets. See:
http://sourceforge.net/tracker/?func=detail&aid=3495642&group_id=243163&atid=1121518

--- minissdp.c.orig	2012-02-14 18:26:53.000000000 +0000
+++ minissdp.c
@@ -90,7 +90,7 @@ OpenAndConfSSDPReceiveSocket()
 		return -1;
 	}	
 
-	if(setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)) < 0)
+	if(setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &i, sizeof(i)) < 0)
 	{
 		DPRINTF(E_WARN, L_SSDP, "setsockopt(udp, SO_REUSEADDR): %s\n", strerror(errno));
 	}
@@ -670,9 +670,17 @@ ProcessSSDPRequest(int s, unsigned short
 			}
 			if( i == n_lan_addr )
 			{
-				DPRINTF(E_DEBUG, L_SSDP, "Ignoring SSDP M-SEARCH on other interface [%s]\n",
-					inet_ntoa(sendername.sin_addr));
-				return;
+				if( n_lan_addr == 1 )
+				{
+					DPRINTF(E_INFO, L_SSDP, "SSDP M-SEARCH coming from another subnet [%s]\n",
+						inet_ntoa(sendername.sin_addr));
+				}
+				else
+				{
+					DPRINTF(E_DEBUG, L_SSDP, "Ignoring SSDP M-SEARCH on other interface [%s]\n",
+						inet_ntoa(sendername.sin_addr));
+					return;
+				}
 			}
 			DPRINTF(E_INFO, L_SSDP, "SSDP M-SEARCH from %s:%d ST: %.*s, MX: %.*s, MAN: %.*s\n",
 	        	   inet_ntoa(sendername.sin_addr),
