]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: cleanup networkd-fdb.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 29 Sep 2020 17:24:02 +0000 (02:24 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 6 Oct 2020 17:44:42 +0000 (02:44 +0900)
src/network/networkd-fdb.c
src/network/networkd-fdb.h
src/network/networkd-link.c
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c
src/network/networkd-network.h
src/network/networkd-sriov.h
src/network/networkd-wifi.c
src/network/test-network.c

index c5e591d50b1b11ced6270c8a19784184f04420c9..47db9291872de028c9e1ddaf1c334f75901a66fe 100644 (file)
@@ -8,14 +8,13 @@
 
 #include "alloc-util.h"
 #include "bridge.h"
-#include "conf-parser.h"
 #include "netlink-util.h"
 #include "networkd-fdb.h"
+#include "networkd-link.h"
 #include "networkd-manager.h"
+#include "networkd-network.h"
 #include "parse-util.h"
-#include "string-util.h"
 #include "string-table.h"
-#include "util.h"
 #include "vlan-util.h"
 #include "vxlan.h"
 
index 9ab44f9d3e6c14ce7e9bab31653c3201cb453f9b..4aeb8be9ce7b87af426abf5daf210cbd8ad6422b 100644 (file)
@@ -5,18 +5,16 @@
   Copyright © 2014 Intel Corporation. All rights reserved.
 ***/
 
+#include <inttypes.h>
 #include <linux/neighbour.h>
 
 #include "conf-parser.h"
 #include "ether-addr-util.h"
-#include "list.h"
-#include "macro.h"
+#include "in-addr-util.h"
 #include "networkd-util.h"
 
 typedef struct Network Network;
-typedef struct FdbEntry FdbEntry;
 typedef struct Link Link;
-typedef struct NetworkConfigSection NetworkConfigSection;
 
 typedef enum NeighborCacheEntryFlags {
         NEIGHBOR_CACHE_ENTRY_FLAGS_USE = NTF_USE,
@@ -27,7 +25,7 @@ typedef enum NeighborCacheEntryFlags {
         _NEIGHBOR_CACHE_ENTRY_FLAGS_INVALID = -1,
 } NeighborCacheEntryFlags;
 
-struct FdbEntry {
+typedef struct FdbEntry {
         Network *network;
         NetworkConfigSection *section;
 
@@ -39,7 +37,7 @@ struct FdbEntry {
         struct ether_addr mac_addr;
         union in_addr_union destination_addr;
         NeighborCacheEntryFlags fdb_ntf_flags;
-};
+} FdbEntry;
 
 FdbEntry *fdb_entry_free(FdbEntry *fdb_entry);
 
index 2282749fa607d4a6cf5300894c2f831501e5ca8c..aa9c0c528ad98263ed225fd2dabc9cdff8782f37 100644 (file)
@@ -25,6 +25,7 @@
 #include "networkd-dhcp-server.h"
 #include "networkd-dhcp4.h"
 #include "networkd-dhcp6.h"
+#include "networkd-fdb.h"
 #include "networkd-ipv4ll.h"
 #include "networkd-ipv6-proxy-ndp.h"
 #include "networkd-link-bus.h"
index 648e882a292941f226d65a6939630d166265390c..ac28de39aa4d92b0ec0c99e58adc186f7dd318bf 100644 (file)
@@ -13,6 +13,7 @@ _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
 #include "networkd-dhcp-server.h"
 #include "networkd-dhcp4.h"
 #include "networkd-dhcp6.h"
+#include "networkd-fdb.h"
 #include "networkd-ipv4ll.h"
 #include "networkd-ndisc.h"
 #include "networkd-network.h"
index a8c32b9628913039a805b59fde9cf5df18e6f706..25b0046bd9b593c4f1ef189c765d715ceca25a0f 100644 (file)
@@ -15,6 +15,7 @@
 #include "networkd-dhcp-server.h"
 #include "network-internal.h"
 #include "networkd-address-label.h"
+#include "networkd-fdb.h"
 #include "networkd-manager.h"
 #include "networkd-neighbor.h"
 #include "networkd-network.h"
index e1d22f18646dd47d212e5a6e5e5effebc36b63a1..d471c982393cb8dc35e40193da847a90367036ab 100644 (file)
@@ -18,7 +18,6 @@
 #include "networkd-dhcp4.h"
 #include "networkd-dhcp6.h"
 #include "networkd-dhcp-server.h"
-#include "networkd-fdb.h"
 #include "networkd-ipv6-proxy-ndp.h"
 #include "networkd-lldp-rx.h"
 #include "networkd-lldp-tx.h"
index a545d1292ae0e5aec540964609a5ead866bf48c6..04cc4270f1b7e8c1600780a8ce6ef1cda4059407 100644 (file)
@@ -5,6 +5,7 @@
 #include <linux/if_link.h>
 
 #include "conf-parser.h"
+#include "ether-addr-util.h"
 #include "networkd-link.h"
 #include "networkd-network.h"
 #include "networkd-util.h"
index 14a8687458d5b8aebfed5cb7e947845bd18e1418..53b65286b37b42f767ea1d9207817237cbdc14ce 100644 (file)
@@ -6,6 +6,7 @@
 #include "sd-bus.h"
 
 #include "bus-util.h"
+#include "ether-addr-util.h"
 #include "netlink-internal.h"
 #include "netlink-util.h"
 #include "networkd-link.h"
index eeb756ca0435f3e0d0807f7576c04f78e9cc3cab..e93e8c0cc094089cd7ba6ce6695fa17be53f3f2e 100644 (file)
@@ -7,6 +7,7 @@
 
 #include "alloc-util.h"
 #include "dhcp-lease-internal.h"
+#include "ether-addr-util.h"
 #include "hostname-util.h"
 #include "network-internal.h"
 #include "networkd-manager.h"