Re: Special Characters

New Message Reply About this list Date view Thread view Subject view Author view

From: Clive D.W. Feather (clive@demon.net)
Date: Tue Apr 11 2000 - 11:41:52 CDT


Jonathan Grobe said:
> I allow [IP-ADDR] as the domain part of the ID now, but only if it's
> the entire domain name and only if it strictly follows the N.N.N.N format
> where N is 0 to 255.

Except that that's not the correct rule. The correct syntax is:

    ip-addr : "[" dotted-part "]"

    dotted-part : number |
                  number "." number |
                  number "." number "." number |
                  number "." number "." number "." number

    number : non-zero *digit | ( "0x" | "0X" ) 1*hex | "0" *octal

    digit : "0"-"9"

    non-zero : "1"-"9"

    octal : "0"-"7"

    hex : digit | "a"-"f" | "A"-"F"

with the following semantic constraints:

* all numbers except the last must be in the range 0 to 0xFF
* the range of the last number depends on the number of dots:
    no dots: 0 to 0xFFFFFFFF
    1 dot: 0 to 0xFFFFFF
    2 dots: 0 to 0xFFFF
    3 dots: 0 to 0xFF

-- 
Clive D.W. Feather  | Work:  <clive@demon.net>   | Tel:  +44 20 8371 1138
Internet Expert     | Home:  <clive@davros.org>  | Fax:  +44 20 8371 1037
Demon Internet      | WWW: http://www.davros.org | DFax: +44 20 8371 4037
Thus plc            |                            | Mobile: +44 7973 377646 


New Message Reply About this list Date view Thread view Subject view Author view


This archive was generated by hypermail 2b29.