summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorAnnika Wickert <aw@awlnx.space>2020-10-02 21:43:05 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-02-24 17:57:29 +0100
commitc0267a592a2d44c89874249573d53a456ea3756b (patch)
treeb51b3dbcd12d626a441297a4db5fb672a98f7922 /src/network/networkd-network.c
parentresolved: don't discard mDNS queries with bad flags (diff)
downloadsystemd-c0267a592a2d44c89874249573d53a456ea3756b.tar.xz
systemd-c0267a592a2d44c89874249573d53a456ea3756b.zip
network: Implement B.A.T.M.A.N. Advanced interface type
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index e3c138411e..9865ebd255 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -171,12 +171,14 @@ int network_verify(Network *network) {
"%s: Conditions in the file do not match the system environment, skipping.",
network->filename);
+ (void) network_resolve_netdev_one(network, network->batadv_name, NETDEV_KIND_BATADV, &network->batadv);
(void) network_resolve_netdev_one(network, network->bond_name, NETDEV_KIND_BOND, &network->bond);
(void) network_resolve_netdev_one(network, network->bridge_name, NETDEV_KIND_BRIDGE, &network->bridge);
(void) network_resolve_netdev_one(network, network->vrf_name, NETDEV_KIND_VRF, &network->vrf);
(void) network_resolve_stacked_netdevs(network);
/* Free unnecessary entries. */
+ network->batadv_name = mfree(network->batadv_name);
network->bond_name = mfree(network->bond_name);
network->bridge_name = mfree(network->bridge_name);
network->vrf_name = mfree(network->vrf_name);
@@ -633,6 +635,7 @@ static Network *network_free(Network *network) {
set_free_free(network->ndisc_deny_listed_route_prefix);
set_free_free(network->ndisc_allow_listed_route_prefix);
+ free(network->batadv_name);
free(network->bridge_name);
free(network->bond_name);
free(network->vrf_name);