From owner-freebsd-ports-bugs@freebsd.org Sat Apr 9 11:57:59 2016 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34EDBB0806C for ; Sat, 9 Apr 2016 11:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0CAD412F3 for ; Sat, 9 Apr 2016 11:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u39Bvw8r055573 for ; Sat, 9 Apr 2016 11:57:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 208652] [PATCH] net/mdns-repeater: bind to proper interface; strerror Date: Sat, 09 Apr 2016 11:57:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: johan@stromnet.se X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ehaupt@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2016 11:57:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208652 Bug ID: 208652 Summary: [PATCH] net/mdns-repeater: bind to proper interface; strerror Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ehaupt@FreeBSD.org Reporter: johan@stromnet.se Attachment #169123 maintainer-approval? Flags: Assignee: ehaupt@FreeBSD.org Keywords: patch Flags: maintainer-feedback?(ehaupt@FreeBSD.org) Created attachment 169123 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169123&action= =3Dedit Patch to fix interface binding & error messages on FreeBSD. The net/mdns-repeater port is supposed to read one mDNS multicast packet fr= om one interface, and forward it to one or more interfaces. On FreeBSD it does not properly bind each sending socket to their correspon= ding interface, instead it just sends to multi-cast IP 244.0.0.251, which is emi= tted on the interface found via the default route (at least that was the case he= re). In my case this was my internet interface, resulting in all packets getting blocked by my firewall (and not sent at all to the proper interfaces). Not sure if this have ever worked on a multi-homed machine, but perhaps all= the users have wanted it to forward to the interface with the default route, and assumed it was fine. The existing code solves this with the Linux-specific SO_BINDTODEVICE opt, = if it exists. It doesn't on FreeBSD. The attached patch fixes this by using the IP_MULTICAST_IF socket option instead. The patch also replaces the use of GNU-specific %m formatter (expands to strerror(errno)). While this works on FreeBSD syslog(3), it does not work on FreeBSD printf(3). Patch built with make makepatch. --=20 You are receiving this mail because: You are the assignee for the bug.=