> On Oct 2, 2017, at 7:27 PM, Peter <[email protected]> wrote: > >> With ifconfig being deprecated on Linux, does that mean that network >> settings specified with newer commands that replace ifconfig will not >> work ? > > I'm not entirely sure, but I would venture to say that it means that > ifconfig libraries are used to fetch the IPs and subnets on the system.
There are no "ifconfig libraries". There's the original socket API, which provides the SIOCGLIFCONF, SIOCGIFCONF ioctls() to retrieve the list of interfaces and one IP address per logical interface. Various platforms support newer, cleaner APIs to the same ends. The documentation of mynetworks_style may be a bit out of date, Postfix may well by now be able to find secondary IP addresses of interfaces, even when not associated with a separate logical interface. See: https://github.com/vdukhovni/postfix/blob/master/postfix/src/util/inet_addr_local.c#L81 https://github.com/vdukhovni/postfix/blob/master/postfix/src/util/inet_addr_local.c#L102 -- Viktor.
