Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2013 07:15:33 GMT
From:      Matthieu Volat <mazhe@alkumuna.eu>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/182199: mdnsd failing on assertion because badly defined flags
Message-ID:  <201309180715.r8I7FXRY002359@oldred.freebsd.org>
Resent-Message-ID: <201309180720.r8I7K0pQ018711@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309180715.r8I7FXRY002359>