[avahi] Re: Avahi daemon dies on certain hostnames
Iván Sánchez Ortega
i.sanchez at mirame.net
Sat Apr 1 05:18:02 PST 2006
-----BEGIN PGP SIGNED MESSAGE-----
El Sábado 01 de Abril de 2006 14:20, Lennart Poettering escribió:
> If I understood correctly the Axis cameras don't come with invalid
> host names by default, correct?
> This was a bad manual configuration, right?
> If so, I don't see such a big problem if we simple refuse to work with badly
> configured devices.
I don't like that idea much... a "badly configured device" today may be
a "device with default config" tomorrow.
You say that escaping the string is not a valid solution, due to the DNS label
size limit. But, how about this?:
if (the label is not a valid UTF8 string)
escape the invalid characters
if (new lenght of the DNS label < 255)
Return the escaped label
Ignore this label, log a warning into syslog
This way, Avahi should work with *most* badly configured devices (as people
don't usually use up 256 characters for a device name); and devices
with "bad" names, that are too long to be sanitized, will be just ignored.
Just an idea...
Iván Sánchez Ortega <ivansanchez at escomposlinux.org> <i.sanchez at mirame.net>
Now listening to: Vangelis - Spiral (1977) -  Ballad (8:31) (86%)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v126.96.36.199 (GNU/Linux)
-----END PGP SIGNATURE-----
More information about the avahi