From: Yu Watanabe Date: Tue, 29 Sep 2020 21:10:02 +0000 (+0900) Subject: network: cleanup networkd-radv.h X-Git-Tag: v247-rc1~117^2~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5ce40472c88629006f868b0e9368ce206db1af7;p=thirdparty%2Fsystemd.git network: cleanup networkd-radv.h --- diff --git a/src/network/networkd-network-gperf.gperf b/src/network/networkd-network-gperf.gperf index 6a774001b83..3b5056e105d 100644 --- a/src/network/networkd-network-gperf.gperf +++ b/src/network/networkd-network-gperf.gperf @@ -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" diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index f77d1bae89c..b9b3ed24d24 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -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" diff --git a/src/network/networkd-radv.c b/src/network/networkd-radv.c index 9762b3a5e7b..9b6a83cb663 100644 --- a/src/network/networkd-radv.c +++ b/src/network/networkd-radv.c @@ -7,11 +7,11 @@ #include #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" diff --git a/src/network/networkd-radv.h b/src/network/networkd-radv.h index d549be5f8e6..af554aeef78 100644 --- a/src/network/networkd-radv.h +++ b/src/network/networkd-radv.h @@ -5,13 +5,17 @@ Copyright © 2017 Intel Corporation. All rights reserved. ***/ +#include +#include + +#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);