networkd-netdev-bridge.c revision cf0fbc49e67b55f8d346fc94de28c90113505297
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2014 Tom Gundersen <teg@jklm.no>
Copyright 2014 Susant Sahani
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 "missing.h"
#include "netlink-util.h"
#include "networkd-netdev-bridge.h"
/* callback for brige netdev's parameter set */
int r;
assert(m);
r = sd_netlink_message_get_errno(m);
if (r < 0) {
return 1;
}
return 1;
}
Bridge *b;
int r;
assert(b);
if (r < 0)
if (r < 0)
if (r < 0)
r = sd_netlink_message_open_container_union(req, IFLA_INFO_DATA, netdev_kind_to_string(netdev->kind));
if (r < 0)
/* convert to jiffes */
if (b->forward_delay > 0) {
if (r < 0)
}
if (b->hello_time > 0) {
if (r < 0)
}
if (b->max_age > 0) {
if (r < 0)
}
if (r < 0)
if (r < 0)
if (r < 0)
return r;
}
const NetDevVTable bridge_vtable = {
.object_size = sizeof(Bridge),
.sections = "Match\0NetDev\0Bridge\0",
};