[avahi] Re: Avahi daemon dies on certain hostnames
sebastien.estienne at gmail.com
Sat Apr 1 05:40:20 PST 2006
On 4/1/06, Iván Sánchez Ortega <i.sanchez at mirame.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 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...
i proposed something like this.
btw i think the limit is not 256, but something like 63
> - --
> - ----------------------------------
> 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 v18.104.22.168 (GNU/Linux)
> -----END PGP SIGNATURE-----
> avahi mailing list
> avahi at lists.freedesktop.org
More information about the avahi