Hello Durga,

I think that's a strange way to write an IP address.

If you do man 3 inet_addr the format for the dotted address is explained. As stated in that man page:

   In all of the above forms, components of the dotted address can be
   specified in decimal, octal (with a  leading 0),  or hexadecimal,
   with a leading 0X).  Addresses in any of these forms are
   collectively termed IPV4 numbers-and-dots notation. The form that
   uses exactly four decimal numbers is referred to as IPv4
   dotted-decimal notation (or sometimes: IPv4 dotted-quad notation).

An example is given:

   $ ./a.out 226.000.000.037      # Last byte is in octal

So 037 is octal not decimal.

Because 6 is less than 7 you can get away with it, but not for long with other numerical values that exceed octal. I think its inviting trouble for maintainers of your code.


Andrew


On 11/8/19 2:59 am, Durga Prasad Malyala wrote:
I am curious what is the format of IP addresses in /etc/postfix/access.
i.e. will it understand  006.45.023.230 instead of the common 6.45.23.230 ?

Reply via email to