Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #199440

Re: processing order for configuration files in /etc/network/interfaces.d

From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups linux.debian.user
Subject Re: processing order for configuration files in /etc/network/interfaces.d
Date 2018-08-27 18:10 +0200
Message-ID <wrsfv-hF-13@gated-at.bofh.it> (permalink)
References (5 earlier) <wrkUG-4m8-3@gated-at.bofh.it> <wrprj-74C-5@gated-at.bofh.it> <wrpUm-7dM-17@gated-at.bofh.it> <wrr06-7Pn-17@gated-at.bofh.it> <wrrW9-8nE-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Aug 27, 2018 at 06:41:25PM +0300, Reco wrote:
> Last sentence says to me that wordexp output should be always sorted.

This only tells us that it *reads* the config files in glob-sorted order.
And peeking into the actual source code of ifupdown, yes, it appears to
do this.  (File config.c starting at line 436, in the stretch source.)
It even uses wordexp() as advertised.

What's less clear to me at this moment is what happens *after* the
interface configuration file(s) have been read into memory.

Moving over to main.c, it looks like it reads the interfaces (line 639),
and that function was called from line 1190.  After line 1190, it loops
over the "target_iface" array, and processes them in the order they appear
in that array.

So... next question is how they get packed into that array.

Returning to the select_interfaces function, it looks like the ordering
is created by a call to find_allowup.

And... this is where I stopped reading, because it got confusing.  Maybe
someone else can take a stab at deciphering that part.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

processing order for configuration files in /etc/network/interfaces.d Martin T <m4rtntns@gmail.com> - 2018-08-23 16:40 +0200
  Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-23 17:10 +0200
    Re: processing order for configuration files in /etc/network/interfaces.d Martin T <m4rtntns@gmail.com> - 2018-08-26 14:50 +0200
      Re: processing order for configuration files in  /etc/network/interfaces.d David Wright <deblis@lionunicorn.co.uk> - 2018-08-26 16:50 +0200
        Re: processing order for configuration files in /etc/network/interfaces.d Martin T <m4rtntns@gmail.com> - 2018-08-26 20:40 +0200
          Re: processing order for configuration files in  /etc/network/interfaces.d Zenaan Harkness <zenaan@freedbms.net> - 2018-08-27 04:40 +0200
          Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-27 10:20 +0200
            Re: processing order for configuration files in  /etc/network/interfaces.d Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-27 15:10 +0200
              Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-27 15:30 +0200
              Re: processing order for configuration files in  /etc/network/interfaces.d Reco <recoverym4n@gmail.com> - 2018-08-27 15:40 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-27 16:50 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d Reco <recoverym4n@gmail.com> - 2018-08-27 17:50 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d <tomas@tuxteam.de> - 2018-08-27 17:50 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-27 18:10 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d Reco <recoverym4n@gmail.com> - 2018-08-27 18:30 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d David Wright <deblis@lionunicorn.co.uk> - 2018-08-27 18:50 +0200
                Re: processing order for configuration files in  /etc/network/interfaces.d Reco <recoverym4n@gmail.com> - 2018-08-27 19:40 +0200
          Re: processing order for configuration files in  /etc/network/interfaces.d David Wright <deblis@lionunicorn.co.uk> - 2018-08-28 15:30 +0200
  Re: processing order for configuration files in  /etc/network/interfaces.d Badiane Ka <badiane_ka@yahoo.com> - 2018-08-29 17:50 +0200

csiph-web