On Sun, 11 Aug 2019 at 14:38, Andrew Bernard <andrew.bern...@gmail.com> wrote:
>
> 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 ?

well Andrew - I am interested in using a list from
https://dshield.org/ipsascii.html
they are providing a list but it is in the format 089.248.172.085  -
notice the leading zeroes. - I am stripping out all data and only
using the first column. Now instead of firing a script to truncate the
leading zeroes within the octets - I am wondering if the IPs can be
used directly by the postfix access file.

Thanks/DP

Reply via email to