[avahi] Re: Avahi daemon dies on certain hostnames

Sebastien Estienne 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?
>
> Yes.
>
> > This was a bad manual configuration, right?
>
> Yes.
>
> > 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
>         else
>                 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) - [2] Ballad (8:31) (86%)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (GNU/Linux)
>
> iD8DBQFELn2P3jcQ2mg3Pc8RAqaqAJ0QtqmGZ/EFa1DbrM1i4/yPUHK3hQCeLffS
> 3Hf9AolE4fFLsYT1iXBrl5E=
> =KYPl
> -----END PGP SIGNATURE-----
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
>


--
Sebastien Estienne


More information about the avahi mailing list