From 54abf461d6b10dc270c4bb2aeac65f240ff1c5cd Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 22 Jan 2014 14:49:24 +0100 Subject: networkd: add basic VLAN support --- src/network/networkd-link.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/network/networkd-link.c') diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index f746f2dcc4..17e7047bd5 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -786,7 +786,7 @@ static int link_enter_enslave(Link *link) { link->state = LINK_STATE_ENSLAVING; - if (!link->network->bridge && !link->network->bond) + if (!link->network->bridge && !link->network->bond && !link->network->vlan) return link_enslaved(link); if (link->network->bridge) { @@ -810,19 +810,19 @@ static int link_enter_enslave(Link *link) { link->enslaving ++; } - if (link->network->bond) { + if (link->network->vlan) { log_struct_link(LOG_DEBUG, link, "MESSAGE=%s: enslaving by '%s'", - link->network->bond->name, - NETDEV(link->network->bond), + link->network->vlan->name, + NETDEV(link->network->vlan), NULL); - r = netdev_enslave(link->network->bond, link, &enslave_handler); + r = netdev_enslave(link->network->vlan, link, &enslave_handler); if (r < 0) { log_struct_link(LOG_WARNING, link, "MESSAGE=%s: could not enslave by '%s': %s", - link->network->bond->name, strerror(-r), - NETDEV(link->network->bond), + link->network->vlan->name, strerror(-r), + NETDEV(link->network->vlan), NULL); link_enter_failed(link); return r; -- cgit v1.2.3-54-g00ecf