Projecte

General

Perfil

Actions

Error #117

tancat

BMX6 don't support non alphanumeric characters in hostname

Afegit per Pau Escrich fa aproximadament 12 anys. Actualitzat fa més de 5 anys.

Estat:
Tancat
Prioritat:
Baixa
Assignat a:
Categoria:
BMX6 GW
Versió prevista:
-
Inici:
15-03-2012
Data de venciment:
% realitzat:

100%

Temps previst:
2:00 h
Temps invertit:

Descripció

A linux hostname can contain special characters like . or _
But bmx6 crashes if hostname is not alphanumeric.

Actions #1

Actualitzat per Axel Neumann fa aproximadament 12 anys

  • Estat ha canviat de Nou a Resolt
  • Prioritat ha canviat de Normal a Baixa
  • % realitzat ha canviat de 0 a 100

I've played with hostname command and checked wikipedia
http://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names
which says mainly:
Anything from 0-9, a-z, A-Z, '-', and '.' for a hostname is ok

Particularly '_' is illegal (also when testing with hostname)

Pretty much as it is in bmx6:
http://bmx6.net/projects/bmx6/repository/revisions/master/entry/tools.c#L119
(I know, c=='-' must not be checked twice,... but apart from that)

The main difference to rfc1123 is the total length which must be below 32 characters (instead of 255).
I should consider this 255 character limitation with the next bigger bmx6 compatibility switch because simply increasing this number would mean transferring mostly zeros in the description if the hostname is shorter.

Actions #2

Actualitzat per Roger Pueyo Centelles fa més de 5 anys

  • Estat ha canviat de Resolt a Tancat
Actions

També disponible a: Atom PDF