From: Michael Tremer Date: Thu, 8 Jun 2023 15:48:20 +0000 (+0000) Subject: ports: Store the parent name X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d200865e663a1a15b43d7462cbcddf7c13dc6997;p=network.git ports: Store the parent name Signed-off-by: Michael Tremer --- diff --git a/src/networkd/port-vlan.c b/src/networkd/port-vlan.c index 8f5372eb..45abebe9 100644 --- a/src/networkd/port-vlan.c +++ b/src/networkd/port-vlan.c @@ -209,9 +209,13 @@ int nw_port_set_vlan_parent(nw_port* port, nw_port* parent) { } // Store the new parent - if (parent) + if (parent) { port->vlan.parent = nw_port_ref(parent); + // Store the name + nw_string_set(port->vlan.__parent_name, nw_port_name(parent)); + } + DEBUG("Port %s: Set VLAN parent to %s\n", port->name, nw_port_name(port->vlan.parent)); return 0;