networkd.h revision bddfc8afd329ac68a23f66a3512d4e249af25191
6408N/A along with systemd; If not, see <http://www.gnu.org/licenses/>.
6408N/A#include "sd-event.h"
6408N/A#include "sd-dhcp-client.h"
6408N/A#include "sd-ipv4ll.h"
6408N/A#include "rtnl-util.h"
6408N/A#include "condition-util.h"
6408N/Astruct netdev_enslave_callback {
typedef enum MacVlanMode {
} MacVlanMode;
typedef enum NetDevKind {
} NetDevKind;
typedef enum NetDevState {
} NetDevState;
struct NetDev {
int n_ref;
char *filename;
char *description;
char *ifname;
char *ifname_peer;
int ifindex;
bool tunnel_pmtudisc;
unsigned tunnel_ttl;
unsigned tunnel_tos;
struct Network {
char *filename;
char *match_path;
char *match_driver;
char *match_type;
char *match_name;
char *description;
bool dhcp;
bool dhcp_dns;
bool dhcp_ntp;
bool dhcp_mtu;
bool dhcp_hostname;
bool dhcp_domainname;
bool dhcp_critical;
bool ipv4ll;
struct Address {
unsigned char family;
unsigned char prefixlen;
unsigned char scope;
char *label;
} in_addr;
struct Route {
unsigned char family;
unsigned char dst_prefixlen;
unsigned char scope;
} in_addr;
} dst_addr;
typedef enum LinkState {
} LinkState;
typedef enum LinkOperationalState {
struct Link {
int n_ref;
char *ifname;
char *state_file;
unsigned flags;
unsigned addr_messages;
unsigned route_messages;
unsigned enslaving;
char *lease_file;
struct Manager {
char *state_file;
extern const char* const network_dirs[];
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__)