-----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...

- -- 
- ----------------------------------
Iván Sánchez Ortega <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/avahi

Reply via email to