Project

General

Profile

Actions

Error #117

closed

BMX6 don't support non alphanumeric characters in hostname

Added by Pau Escrich about 13 years ago. Updated over 6 years ago.

Status:
Tancat
Priority:
Baixa
Assignee:
Category:
BMX6 GW
Target version:
-
Start date:
03/15/2012
Due date:
% Done:

100%

Estimated time:
2:00 h
Spent time:

Description

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

Actions #1

Updated by Axel Neumann almost 13 years ago

  • Status changed from Nou to Resolt
  • Priority changed from Normal to Baixa
  • % Done changed from 0 to 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

Updated by Roger Pueyo Centelles over 6 years ago

  • Status changed from Resolt to Tancat
Actions

Also available in: Atom PDF