summaryrefslogtreecommitdiff
path: root/src/network/networkd-neighbor.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-09-30 00:17:22 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-07 02:44:42 +0900
commit1939ebeb893ddf62bc80d74ef766a495f120b1a1 (patch)
treeef25960bf264fce1078c8075bbe6595375a5f39b /src/network/networkd-neighbor.h
parent9be0b3abc24425675ace0876c05fd161789cbd14 (diff)
downloadsystemd-1939ebeb893ddf62bc80d74ef766a495f120b1a1.tar.gz
network: cleanup headers in networkd-neighbor.[ch]
Diffstat (limited to 'src/network/networkd-neighbor.h')
-rw-r--r--src/network/networkd-neighbor.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/network/networkd-neighbor.h b/src/network/networkd-neighbor.h
index 5f738f7d4a..56d1f66bf7 100644
--- a/src/network/networkd-neighbor.h
+++ b/src/network/networkd-neighbor.h
@@ -1,26 +1,25 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
+#include <stdbool.h>
+
#include "sd-netlink.h"
#include "conf-parser.h"
#include "ether-addr-util.h"
#include "in-addr-util.h"
-#include "list.h"
-#include "macro.h"
-
-typedef struct Neighbor Neighbor;
-
-#include "networkd-link.h"
-#include "networkd-network.h"
#include "networkd-util.h"
+typedef Manager Manager;
+typedef Network Network;
+typedef Link Link;
+
union lladdr_union {
struct ether_addr mac;
union in_addr_union ip;
};
-struct Neighbor {
+typedef struct Neighbor {
Network *network;
Link *link;
NetworkConfigSection *section;
@@ -29,7 +28,7 @@ struct Neighbor {
union in_addr_union in_addr;
union lladdr_union lladdr;
size_t lladdr_size;
-};
+} Neighbor;
void neighbor_free(Neighbor *neighbor);
int neighbor_section_verify(Neighbor *neighbor);