summaryrefslogtreecommitdiff
path: root/src/network/networkd-nexthop.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-09-29 17:47:28 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-10-07 02:39:51 +0900
commit75156ccbdcae8f83235ac718a65dedaa631d5b2a (patch)
tree90fa845c2c5e6b0569ea22c57bac3252911c5454 /src/network/networkd-nexthop.h
parentb82663ddee4a4fb140cc53674242cdc334e30c1f (diff)
downloadsystemd-75156ccbdcae8f83235ac718a65dedaa631d5b2a.tar.gz
network: cleanup headers included in networkd-nexthop.h
Diffstat (limited to 'src/network/networkd-nexthop.h')
-rw-r--r--src/network/networkd-nexthop.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/network/networkd-nexthop.h b/src/network/networkd-nexthop.h
index 2ff8b4b81e..7d1705904f 100644
--- a/src/network/networkd-nexthop.h
+++ b/src/network/networkd-nexthop.h
@@ -4,16 +4,19 @@
#pragma once
-#include "conf-parser.h"
-#include "macro.h"
+#include <inttypes.h>
-typedef struct NextHop NextHop;
-typedef struct NetworkConfigSection NetworkConfigSection;
+#include "sd-netlink.h"
-#include "networkd-network.h"
+#include "conf-parser.h"
+#include "in-addr-util.h"
#include "networkd-util.h"
-struct NextHop {
+typedef struct Link Link;
+typedef struct Manager Manager;
+typedef struct Network Network;
+
+typedef struct NextHop {
Network *network;
NetworkConfigSection *section;
@@ -26,15 +29,14 @@ struct NextHop {
uint32_t id;
union in_addr_union gw;
-};
+} NextHop;
-void nexthop_free(NextHop *nexthop);
+NextHop *nexthop_free(NextHop *nexthop);
+int nexthop_section_verify(NextHop *nexthop);
int link_set_nexthop(Link *link);
int manager_rtnl_process_nexthop(sd_netlink *rtnl, sd_netlink_message *message, Manager *m);
-int nexthop_section_verify(NextHop *nexthop);
-
CONFIG_PARSER_PROTOTYPE(config_parse_nexthop_id);
CONFIG_PARSER_PROTOTYPE(config_parse_nexthop_gateway);