| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
#include "network-util.h" |
| 6 |
|
| 7 |
typedef struct DNSConfiguration DNSConfiguration; |
| 8 |
typedef struct Manager Manager; |
| 9 |
|
| 10 |
typedef struct Link { |
| 11 |
Manager *manager; |
| 12 |
|
| 13 |
int ifindex; |
| 14 |
char *ifname; |
| 15 |
char **altnames; |
| 16 |
unsigned flags; |
| 17 |
|
| 18 |
bool required_for_online; |
| 19 |
LinkOperationalStateRange required_operstate; |
| 20 |
LinkOperationalState operational_state; |
| 21 |
AddressFamily required_family; |
| 22 |
LinkAddressState ipv4_address_state; |
| 23 |
LinkAddressState ipv6_address_state; |
| 24 |
char *state; |
| 25 |
DNSConfiguration *dns_configuration; |
| 26 |
} Link; |
| 27 |
|
| 28 |
int rtnl_process_link(sd_netlink *rtnl, sd_netlink_message *mm, void *userdata); |
| 29 |
int link_update_monitor(Link *l); |