On 8/26/22 13:40, Tobias Waldvogel wrote:
From: Tobias Waldvogel <tobias.waldvo...@gmail.com>

Printing on Android devices via mdns IPP does not work
with the default value of 60 seconds for the
lookup timeout. It seems that Androd expects an
immediate answer just when trying to print. Nevertheless
the umdns debug messages show that the answer is supressed
due to the timeout. As a result the printer does not
show up.
This patch implements an additional parameter
timeout_lookup for setting a dedicated timeout value
with a fallback to TOUT_LOOKUP (60s).

This is a sample ipp service definition, which works
now with Android standard printing:

{
   "ipp": {
     "service": "_ipp._tcp.local",
     "instance": "HL3040CN @ router",
     "port": 631,
     "timeout_lookup": -1,
     "txt": [
       "txtvers=1",
       "UUID=308f65f9-5393-3027-4c83-374cb704e729",
       "rp=printers/HL3040CN",
       "ty=Brother HL3040CN",
       "note=Office",
       "pdl=application/pdf,image/jpeg,image/png,image/pwg-raster",
       "Color=T",
       "Copies=T"
     ]
   }
}

Signed-off-by: Tobias Waldvogel <tobias.waldvo...@gmail.com>

The white spaces in this patch are damaged.

It is also broken in patchwork:
https://patchwork.ozlabs.org/project/openwrt/patch/caaatp75fm8oavryfdzty2bvccmoh8pns0pxv+lpxpxcxu7h...@mail.gmail.com/

You could use "git send-email" to send the patch for example.

Hauke

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to