[PATCH] Avahi does not support local-only services via the loopback interface

Bug #1736757 reported by Till Kamppeter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
avahi (Ubuntu)
Fix Released
High
Unassigned

Bug Description

To allow the more sophisticated functionality of IPP network printers (web admin interface, query printer capabilities and job status from printer) also on USB printers, newer USB printers support the IPP-over-USB standard which is supported under Linux via the ippusbxd package from OpenPrinting. The ippusbxd daemon connects to the USB printer and mirrors it into a virtual IPP network printer on localhost, port 60000.
CUPS and cups-browsed find IPP printers by the printer's DNS-SD broadcasts. On Linux systems avahi-daemon is handling the registration of local services and also the discovery of remote services. This works well with local services shared to the network as Avahi does appropriate broadcasts on network interfaces (eth0, wlan0, ...) but Avahi does not handle the loopback device lo for local services ("localhost"). So the local-only IPP-over-USB printer on localhost:60000, registered by ippusbxd does not get advertised, not even locally.
The attached patchfor the Ubuntu package of Avahi adds support for such services.
See also the upstream bug report https://github.com/lathiat/avahi/issues/125

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I submitted the patch also to the upstream bug report.

tags: added: patch-forwarded-upstream
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :
Changed in avahi (Ubuntu):
status: New → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the upload failed to build because of a debhelper issue, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=878911

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Patch did not get overtaken into 0.7-3ubuntu1, reopening.

Changed in avahi (Ubuntu):
status: Fix Released → New
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

I have applied the patch to the current package now and locally tested it. It is also working with this new version of Avahi.

A new debdiff for the Ubuntu package is attached. Please upload this version. Thanks.

Changed in avahi (Ubuntu):
status: New → In Progress
Changed in avahi (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

This was uploaded and just stuck in -proposed so I'm unsubscribing ubuntu-sponsors.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package avahi - 0.7-3ubuntu2

---------------
avahi (0.7-3ubuntu2) bionic; urgency=low

  * local-only-services-support.patch: Added support for advertising
    local-only services on the loopback ("lo", "localhost") device. This
    is especially needed for making CUPS and cups-browsed auto-discover
    IPP-over-USB printers using ippusbxd (LP: #1736757, Upstream issue #125).

 -- Till Kamppeter <email address hidden> Tue, 9 Jan 2017 21:35:51 -0200

Changed in avahi (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.