[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: InetAddressType DEFVAL clause



HI,

It doesn't appear that you understand the InetAdressType TC
nor the specific TCs. On the following... 
At 03:01 PM 5/23/2003 -0600, Eduardo Cardona wrote:
>How a type is parsed by the agent based on the address : 
>Type = 'ipv4' <-> Address SIZE = 4 && all octets <> "." 
>Type = 'ipv4z' <-> Address SIZE = 4 && all octets <> "." 
>Type = 'ipv6' <-> Address SIZE =  16 && all octets <> "." 
>Type = 'ipv6z' <-> Address SIZE  = 20 && all octets <> "." 
>Type = 'dns'  <-> Address (SIZE > 0 && at least one octet == ".") ||none
>of above ? -> local DNS 
>Type =  'unknown' <->  SIZE == 0 || none of above
The above is not correct.

The two objects that use the TC are paired so that their values
must be consistent. Generally, you cannot change the type without
changing the address. You can change an address without changing
the type as long as the address "is the same type". The value for
an address is "binary" (in network byte order), except when the 
type is DNS (and in this case the value is "text").

Regards,
/david t. perkins