minissdpd (1.1.20120121-1) 0001-always-disable-link_ntoa.diff

Summary

 upnputils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

Description: Always disables AF_LINK checks
 This patch disable the bit that uses link_ntoa under FreeBSD,   
 because this bit is not working in Debian/kFreeBSD (the function
 is not available). Note that to me, this is an isue in kFreeBSD
 itself and that it is kFreeBSD that should be patched to support
 this FreeBSD kernel functionality.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed
--- a/upnputils.c	2011-10-09 17:52:38.000000000 +0000
+++ b/upnputils.c	2011-10-09 17:53:25.000000000 +0000
@@ -41,7 +41,7 @@
 		port = ntohs(((struct sockaddr_in *)addr)->sin_port);
 		n = snprintf(str, size, "%s:%hu", buffer, port);
 		break;
-#ifdef AF_LINK
+#if 0
 	case AF_LINK:
 		{
 			struct sockaddr_dl * sdl = (struct sockaddr_dl *)addr;