diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-30 01:40:03 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-07 02:44:42 +0900 |
commit | fb486c90824b054b8f3ca028bce953e7c09037be (patch) | |
tree | 94bff6563ca6b899c365182dd96de16404ca9edb /src/network/networkd-address-label.h | |
parent | fe2bc17ca7bd42218b147a7781ecf7313090a18c (diff) | |
download | systemd-fb486c90824b054b8f3ca028bce953e7c09037be.tar.gz |
network: cleanup networkd-address-label.h
Diffstat (limited to 'src/network/networkd-address-label.h')
-rw-r--r-- | src/network/networkd-address-label.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/network/networkd-address-label.h b/src/network/networkd-address-label.h index dde6877eef..aacab867e7 100644 --- a/src/network/networkd-address-label.h +++ b/src/network/networkd-address-label.h @@ -2,35 +2,25 @@ #pragma once #include <inttypes.h> -#include <stdbool.h> #include "conf-parser.h" #include "in-addr-util.h" - -typedef struct AddressLabel AddressLabel; - -#include "networkd-link.h" -#include "networkd-network.h" #include "networkd-util.h" typedef struct Network Network; typedef struct Link Link; -typedef struct NetworkConfigSection NetworkConfigSection; -struct AddressLabel { +typedef struct AddressLabel { Network *network; NetworkConfigSection *section; unsigned char prefixlen; uint32_t label; - union in_addr_union in_addr; -}; +} AddressLabel; AddressLabel *address_label_free(AddressLabel *label); -DEFINE_NETWORK_SECTION_FUNCTIONS(AddressLabel, address_label_free); - void network_verify_address_labels(Network *network); int link_set_address_labels(Link *link); |