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

index 6a774001b83ae156caed70012c649d74e85c2828..3b5056e105d1313060b92e6ca417dab8cc9130fd 100644 (file)
@@ -21,6 +21,7 @@ _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
 #include "networkd-network.h"
 #include "networkd-neighbor.h"
 #include "networkd-nexthop.h"
+#include "networkd-radv.h"
 #include "networkd-routing-policy-rule.h"
 #include "networkd-sriov.h"
 #include "qdisc.h"
index f77d1bae89c257295c0b1b7677e0a64d378cc007..b9b3ed24d24e319cb1b36ce822f3e56b60e78466 100644 (file)
@@ -21,6 +21,7 @@
 #include "networkd-neighbor.h"
 #include "networkd-network.h"
 #include "networkd-nexthop.h"
+#include "networkd-radv.h"
 #include "networkd-routing-policy-rule.h"
 #include "networkd-sriov.h"
 #include "parse-util.h"
index 9762b3a5e7b9821b792df0147daf9c037dae3b3c..9b6a83cb6633cdd32f779a24b60bf4581c66ea98 100644 (file)
@@ -7,11 +7,11 @@
 #include <arpa/inet.h>
 
 #include "dns-domain.h"
-#include "networkd-address.h"
+#include "networkd-link.h"
 #include "networkd-manager.h"
+#include "networkd-network.h"
 #include "networkd-radv.h"
 #include "parse-util.h"
-#include "sd-radv.h"
 #include "string-util.h"
 #include "string-table.h"
 #include "strv.h"
index d549be5f8e68697156da4fbb17150e1ee9f846d4..af554aeef78c8590ba7f241a7c224bd0b80329c0 100644 (file)
@@ -5,13 +5,17 @@
   Copyright © 2017 Intel Corporation. All rights reserved.
 ***/
 
+#include <inttypes.h>
+#include <stdbool.h>
+
+#include "sd-radv.h"
+
+#include "in-addr-util.h"
 #include "conf-parser.h"
-#include "networkd-address.h"
-#include "networkd-link.h"
 #include "networkd-util.h"
 
-typedef struct Prefix Prefix;
-typedef struct RoutePrefix RoutePrefix;
+typedef struct Network Network;
+typedef struct Link Link;
 
 typedef enum RADVPrefixDelegation {
         RADV_PREFIX_DELEGATION_NONE   = 0,
@@ -22,21 +26,21 @@ typedef enum RADVPrefixDelegation {
         _RADV_PREFIX_DELEGATION_INVALID = -1,
 } RADVPrefixDelegation;
 
-struct Prefix {
+typedef struct Prefix {
         Network *network;
         NetworkConfigSection *section;
 
         sd_radv_prefix *radv_prefix;
 
         bool assign;
-};
+} Prefix;
 
-struct RoutePrefix {
+typedef struct RoutePrefix {
         Network *network;
         NetworkConfigSection *section;
 
         sd_radv_route_prefix *radv_route_prefix;
-};
+} RoutePrefix;
 
 Prefix *prefix_free(Prefix *prefix);
 RoutePrefix *route_prefix_free(RoutePrefix *prefix);