misc/182199: mdnsd failing on assertion because badly defined flags

Matthieu Volat mazhe at alkumuna.eu
Wed Sep 18 07:20:01 UTC 2013


>Number:         182199
>Category:       misc
>Synopsis:       mdnsd failing on assertion because badly defined flags
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 18 07:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Matthieu Volat
>Release:        9.2-RC4
>Organization:
>Environment:
FreeBSD freedom.alkumuna.eu 9.2-RC4 FreeBSD 9.2-RC4 #0 r255465: Wed Sep 11 05:11:03 UTC 2013     root at bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
When started, the mdnsd service from net/mDNSResponder fails very quickly because failing a catch of "unknown" flags in the recvmsg function.

Turns out that values are strangely hardcoded to wrong values, at least for FreeBSD, in mDNS/mDNSUNP.h.

The following patch fixes the problem :
--- mDNSPosix/mDNSUNP.h.orig      2013-09-18 09:02:04.000000000 +0200
+++ mDNSPosix/mDNSUNP.h 2013-09-18 09:02:55.000000000 +0200
@@ -31,8 +31,8 @@
 // The following are the supported non-linux posix OSes -
 // netbsd, freebsd and openbsd.
 #if HAVE_IPV6
-#define IPV6_2292_PKTINFO  19
-#define IPV6_2292_HOPLIMIT 20
+#define IPV6_2292_PKTINFO  IPV6_PKTINFO
+#define IPV6_2292_HOPLIMIT IPV6_HOPLIMIT
 #endif
 #endif
>How-To-Repeat:
* Install net/mDNSResponder
* run mdnsd -debug
* try to do anything that will generate an answer, like dns-sd -G v4v6 somehost.local where the host is sane
>Fix:
Apply the following patch:

--- mDNSPosix/mDNSUNP.orig      2013-09-18 09:02:04.000000000 +0200
+++ mDNSPosix/mDNSUNP.h 2013-09-18 09:02:55.000000000 +0200
@@ -31,8 +31,8 @@
 // The following are the supported non-linux posix OSes -
 // netbsd, freebsd and openbsd.
 #if HAVE_IPV6
-#define IPV6_2292_PKTINFO  19
-#define IPV6_2292_HOPLIMIT 20
+#define IPV6_2292_PKTINFO  IPV6_PKTINFO
+#define IPV6_2292_HOPLIMIT IPV6_HOPLIMIT
 #endif
 #endif

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list