networkd.h revision 1324e3ae515719a93a94a8d8316644af6c780909
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding This file is part of systemd.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding Copyright 2013 Tom Gundersen <teg@jklm.no>
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding systemd is free software; you can redistribute it and/or modify it
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar under the terms of the GNU Lesser General Public License as published by
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd the Free Software Foundation; either version 2.1 of the License, or
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar (at your option) any later version.
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd systemd is distributed in the hope that it will be useful, but
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd WITHOUT ANY WARRANTY; without even the implied warranty of
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dcnd Lesser General Public License for more details.
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar You should have received a copy of the GNU Lesser General Public License
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar along with systemd; If not, see <http://www.gnu.org/licenses/>.
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoartypedef struct netdev_enslave_callback netdev_enslave_callback;
e569ae6ccf9b3a7424969289971fa4481ce6a014fuankgtypedef enum MacVlanMode {
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoartypedef enum NetDevKind {
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoartypedef enum NetDevState {
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar unsigned char family;
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar unsigned char prefixlen;
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar unsigned char scope;
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar unsigned char family;
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar unsigned char dst_prefixlen;
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar unsigned char scope;
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoartypedef enum LinkState {
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoarextern const char* const network_dirs[];
650b8deadd86f9326c0d4a1bcbbb61cb907722aacoar/* Manager */
e569ae6ccf9b3a7424969289971fa4481ce6a014fuankg/* NetDev */
int config_parse_netdev_kind(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
int config_parse_macvlan_mode(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
const char *filename,
unsigned line,
const char *section,
unsigned section_line,
const char *lvalue,
int ltype,
const char *rvalue,
void *data,
void *userdata);
const char *filename,
unsigned line,
const char *section,
unsigned section_line,
const char *lvalue,
int ltype,
const char *rvalue,
void *data,
void *userdata);
#define log_full_link(level, link, fmt, ...) log_meta_object(level, __FILE__, __LINE__, __func__, "INTERFACE=", link->ifname, "%-*s: " fmt, IFNAMSIZ, link->ifname, ##__VA_ARGS__)
#define log_struct_link(level, link, ...) log_struct(level, "INTERFACE=%s", link->ifname, __VA_ARGS__)
#define log_full_netdev(level, netdev, fmt, ...) log_meta_object(level, __FILE__, __LINE__, __func__, "INTERFACE=", netdev->ifname, "%-*s: " fmt, IFNAMSIZ, netdev->ifname, ##__VA_ARGS__)
#define log_struct_netdev(level, netdev, ...) log_struct(level, "INTERFACE=%s", netdev->ifname, __VA_ARGS__)