]> git.ipfire.org Git - thirdparty/systemd.git/commit - TODO
networkd: unfoobar serialization of links
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 24 May 2020 20:02:47 +0000 (22:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 26 May 2020 08:08:54 +0000 (10:08 +0200)
commitd5e172d2fb2d80b4dc4542089b30d1d19032ff74
treea9d6933533bfbf51304bb6401e1869a0a3036dbd
parent00813316b0e96963d6c975a32a2a825a3d3bad96
networkd: unfoobar serialization of links

We'd start writing an entry line, then another one, then another one,
and then output the rest of the first one, and then some other random
stuff, and the rest of some other lines... Results were ...eh... random.

Let's define a helper to avoid some of the copy&paste madness, and separate
blocks that output a single line with /**********************************/.

This rework doesn't change what data is written, it only tries to fix the
format of the output. The fact that some entries only write data from
link->network, and some from either link->network or link, some stuff only
for dhpc4 leases while some for both dhpc4 and dhcp6, etc, looks rather
suspicious too, but I didn't touch this.
TODO
src/network/networkd-link.c