network: cleanup networkd-radv.h
This commit is contained in:
parent
1a7deb2fcf
commit
b5ce40472c
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue