networkd-netdev-vlan.c revision 6eb33ab207d090a44f6a71c9e303a3efaabd0946
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2013 Tom Gundersen <teg@jklm.no>
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "networkd-netdev-vlan.h"
#include "network-internal.h"
#include "list.h"
int r;
if (r < 0) {
"Could not append IFLA_LINK attribute: %s",
strerror(-r));
return r;
}
if (r < 0) {
"Could not append IFLA_IFNAME attribute: %s",
strerror(-r));
return r;
}
if (r < 0) {
"Could not append IFLA_MTU attribute: %s",
strerror(-r));
return r;
}
}
if (r < 0) {
"Could not append IFLA_ADDRESS attribute: %s",
strerror(-r));
return r;
}
}
if (r < 0) {
"Could not open IFLA_LINKINFO container: %s",
strerror(-r));
return r;
}
if (r < 0) {
"Could not open IFLA_INFO_DATA container: %s",
strerror(-r));
return r;
}
if (r < 0) {
"Could not append IFLA_VLAN_ID attribute: %s",
strerror(-r));
return r;
}
}
if (r < 0) {
"Could not close IFLA_INFO_DATA container %s",
strerror(-r));
return r;
}
if (r < 0) {
"Could not close IFLA_LINKINFO container %s",
strerror(-r));
return r;
}
return 0;
}
return -EINVAL;
}
return 0;
}
const NetDevVTable vlan_vtable = {
};