summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-route.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-07-09 17:18:53 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-07-12 02:39:43 +0200
commitd3e291fd62bdffab9fd3c71beb25aa8876f77178 (patch)
treed06d7acf7e76e0d684e6a0f844f80d336f4a26f6 /src/network/networkd-route.h
parentnetwork: use string table for route protocol (diff)
downloadsystemd-d3e291fd62bdffab9fd3c71beb25aa8876f77178.tar.xz
systemd-d3e291fd62bdffab9fd3c71beb25aa8876f77178.zip
network: also show route protocol in debugging logs
Diffstat (limited to '')
-rw-r--r--src/network/networkd-route.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-route.h b/src/network/networkd-route.h
index d6a023e930..86a7a82617 100644
--- a/src/network/networkd-route.h
+++ b/src/network/networkd-route.h
@@ -77,6 +77,9 @@ const char *format_route_scope(int scope, char *buf, size_t size);
#define ROUTE_TABLE_STR_MAX CONST_MAX(DECIMAL_STR_MAX(int), STRLEN("default") + 1)
const char *format_route_table(int table, char *buf, size_t size);
+#define ROUTE_PROTOCOL_STR_MAX CONST_MAX(DECIMAL_STR_MAX(int), STRLEN("kernel") + 1)
+const char *format_route_protocol(int protocol, char *buf, size_t size);
+
CONFIG_PARSER_PROTOTYPE(config_parse_gateway);
CONFIG_PARSER_PROTOTYPE(config_parse_preferred_src);
CONFIG_PARSER_PROTOTYPE(config_parse_destination);