]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: prevent interfaces to be initialized multiple times
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 15 Apr 2019 08:34:00 +0000 (17:34 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 25 Apr 2019 08:44:46 +0000 (10:44 +0200)
commitbd08ce56156751d58584a44e766ef61340cdae2d
treebff9431752249fd71641cc74b3a1cd73f7a34586
parent0beb9542e90ab1c5d1507a1046a326fbcf73861c
network: prevent interfaces to be initialized multiple times

When a uevent is received during the relevant interface is in
LINK_STATE_PENDING, then the interface may be initialized twice.
To prevent that, this introduces LINK_STATE_INITIALIZED.
src/network/networkd-link.c
src/network/networkd-link.h