]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: cleanup headers in networkd-neighbor.[ch]
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Sep 2020 15:17:22 +0000 (00:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Oct 2020 17:44:42 +0000 (02:44 +0900)
src/network/netdev/macsec.h
src/network/networkd-fdb.h
src/network/networkd-manager.c
src/network/networkd-neighbor.c
src/network/networkd-neighbor.h
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c
src/network/networkd-network.h

index 2a3443a6d4e6dcba45ee7926d5546194d3331095..26ad2b7cca9771c848de07267e0c9ca936660c8f 100644 (file)
@@ -4,6 +4,7 @@
 #include <netinet/in.h>
 #include <linux/if_macsec.h>
 
+#include "ether-addr-util.h"
 #include "in-addr-util.h"
 #include "netdev.h"
 #include "networkd-util.h"
index 5e24ad6aee258d342371a7da2748abcf25b75f59..f607dfc70f0db9612b09aabad6f97ed9414341a8 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/neighbour.h>
 
 #include "conf-parser.h"
+#include "ether-addr-util.h"
 #include "list.h"
 #include "macro.h"
 #include "networkd-util.h"
index 37a9745df8748c20ad47022ff6f13be0a0cedc1c..cd0ad82e2ef62363aee6138d7e45c1d26a045249 100644 (file)
@@ -29,6 +29,7 @@
 #include "networkd-link-bus.h"
 #include "networkd-manager-bus.h"
 #include "networkd-manager.h"
+#include "networkd-neighbor.h"
 #include "networkd-network-bus.h"
 #include "networkd-nexthop.h"
 #include "networkd-routing-policy-rule.h"
index 28c8571a4b203ad48a1b8a538dd647b2806b3ca1..f04a0b762cf0154742b711f5836e56c334d11a4a 100644 (file)
@@ -1,16 +1,12 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 
-#include "sd-netlink.h"
-
 #include "alloc-util.h"
-#include "conf-parser.h"
-#include "ether-addr-util.h"
 #include "hashmap.h"
-#include "in-addr-util.h"
 #include "netlink-util.h"
 #include "networkd-link.h"
 #include "networkd-manager.h"
 #include "networkd-neighbor.h"
+#include "networkd-network.h"
 #include "set.h"
 
 void neighbor_free(Neighbor *neighbor) {
index 5f738f7d4a2cf3faa193ddb62542f6b255a62a07..56d1f66bf737421f85f77b4328b43c7b48f06f44 100644 (file)
@@ -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);
index 25a7b8991a91bbb29baf1e945e9f8548e1c297b6..444b6fce9c9d79fa8100f1b158df1e991b7d4815 100644 (file)
@@ -15,6 +15,7 @@ _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
 #include "networkd-ipv4ll.h"
 #include "networkd-ndisc.h"
 #include "networkd-network.h"
+#include "networkd-neighbor.h"
 #include "networkd-nexthop.h"
 #include "networkd-routing-policy-rule.h"
 #include "networkd-sriov.h"
index f4b03beeabe3d5b63127cbb7213c2b7e9419d435..f0fd3ad3e910e431fc9ffd06ad5ee960c668adb0 100644 (file)
@@ -15,6 +15,7 @@
 #include "networkd-dhcp-server.h"
 #include "network-internal.h"
 #include "networkd-manager.h"
+#include "networkd-neighbor.h"
 #include "networkd-network.h"
 #include "networkd-nexthop.h"
 #include "networkd-routing-policy-rule.h"
index 5ab609bcc0cf4054c987af94394c439ce460bd5d..acc4378771b1f76f54b4e5e738c83bce6a4d2ae0 100644 (file)
@@ -25,7 +25,6 @@
 #include "networkd-lldp-tx.h"
 #include "networkd-mdb.h"
 #include "networkd-ndisc.h"
-#include "networkd-neighbor.h"
 #include "networkd-radv.h"
 #include "networkd-route.h"
 #include "networkd-util.h"