Go to file
Martin Wilck 2d6bd814e6 Accepting request 423113 from home:mwilck:branches:Printing
- Fixed device communication/detection problems with mdns/Bonjour
  see https://bugs.launchpad.net/hplip/+bug/1616861

In my home network, the HP printer/scanner (ENVY 5530) often fails with messages like this:

hp-toolbox[7119]: [7119]: error: Unable to communicate with device (code=12): hp:/net/ENVY_5530_series?zc=HP3464A9E628B4

I've tracked this down to two problems with the MDNS implementation in HPLIP:

 1. On a multi-homed host, HPLIP uses only one interface for MDNS multicast send and receive. This leads to failure if the printer is not on the "default" network. The code uses just INADDR_ANY in its multicast IP_MULTPATH_IF and IP_ADD_MEMBERSHIP setsockopt calls, meaning that the kernel has to figure out the interface to use. This fails if the system has no default route, or if the HP device is on a different network than the default route. The solution is to receive and send multicast on all interfaces.

 2. MDNS authorities (including HP printers) don't answer every query, especially the same query is repeated quickly. The latter happens when the HP tools start, causing the MDNS lookup procedure to fail and the "communication error" to be detected. This can be solved by retrying the query after a short wait (1-2s).

This build contains fixes for both problems.

OBS-URL: https://build.opensuse.org/request/show/423113
OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=128
2016-08-26 14:55:31 +00:00
.gitattributes OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hplip?expand=0&rev=1 2006-12-20 17:14:39 +00:00
.gitignore OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hplip?expand=0&rev=1 2006-12-20 17:14:39 +00:00
add_missing_includes_and_define_GNU_SOURCE.patch Accepting request 400159 from home:weberho:branches:Printing 2016-06-06 09:18:58 +00:00
change-udev-rules.diff Accepting request 400159 from home:weberho:branches:Printing 2016-06-06 09:18:58 +00:00
disable_hp-upgrade.patch Accepting request 209404 from home:jsmeix:branches:Printing 2013-12-04 14:50:19 +00:00
hpijs.1.gz OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hplip?expand=0&rev=6 2007-02-02 12:07:53 +00:00
hplip-3.16.5.tar.gz Accepting request 400159 from home:weberho:branches:Printing 2016-06-06 09:18:58 +00:00
hplip-3.16.5.tar.gz.asc Accepting request 400159 from home:weberho:branches:Printing 2016-06-06 09:18:58 +00:00
hplip-mdns-retry-query.patch Accepting request 423113 from home:mwilck:branches:Printing 2016-08-26 14:55:31 +00:00
hplip-mdns.patch Accepting request 423113 from home:mwilck:branches:Printing 2016-08-26 14:55:31 +00:00
hplip-udev-rules-in-usr.patch - Cleanup-with spec-cleaner 2015-02-19 12:36:58 +00:00
hplip.changes Accepting request 423113 from home:mwilck:branches:Printing 2016-08-26 14:55:31 +00:00
hplip.keyring Accepting request 159423 from home:msmeissn:branches:Printing 2013-03-19 08:40:18 +00:00
hplip.spec Accepting request 423113 from home:mwilck:branches:Printing 2016-08-26 14:55:31 +00:00