[bind10-dev] Convention when specifying address and port

Stephen Morris stephen at isc.org
Fri Jul 8 09:34:56 UTC 2011


On 06/07/2011 10:36, Shane Kerr wrote:
> For the record, my own preference is to use the same style as URLs:
> 
>     192.0.2.1:53
>     [2001:db8::1]:53
> 
> It is slightly inconsistent, but it follows a standard.

The inconsistency will require extra work for message output.  A number
of messages relating to address/port have one argument for the address
and one for the port, e.g.

STATS_HTTPD_CLOSING closing %1#%2

If we use different formats for IPv4 and IPv6 addresses, we'll need
rewrite the code so that the address formatting is done prior to logging.

Stephen



More information about the bind10-dev mailing list