summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@users.noreply.github.com>2017-09-19 19:58:26 +0530
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-09-19 16:28:26 +0200
commit983226f35a648e308ecaec269dafe4ab6129b5d5 (patch)
tree47dcbe24b6127ae4d789b562b8baecb298faa582 /src/systemd
parent6349cda20f3af342a76c7ab234b386422997f4f1 (diff)
downloadsystemd-983226f35a648e308ecaec269dafe4ab6129b5d5.tar.gz
networkd: route - support unicast,blackhole,unreachable and prohibited (#6861)
Resolves issues #797 and #967. Conf ``` [Route] Type=blackhole Destination=202.54.1.2 ``` ip route ``` blackhole 202.54.1.2 proto static
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-netlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/sd-netlink.h b/src/systemd/sd-netlink.h
index 2289269eef..b28fc0da00 100644
--- a/src/systemd/sd-netlink.h
+++ b/src/systemd/sd-netlink.h
@@ -138,6 +138,7 @@ int sd_rtnl_message_route_set_src_prefixlen(sd_netlink_message *m, unsigned char
int sd_rtnl_message_route_set_scope(sd_netlink_message *m, unsigned char scope);
int sd_rtnl_message_route_set_flags(sd_netlink_message *m, unsigned flags);
int sd_rtnl_message_route_set_table(sd_netlink_message *m, unsigned char table);
+int sd_rtnl_message_route_set_type(sd_netlink_message *m, unsigned char type);
int sd_rtnl_message_route_get_flags(sd_netlink_message *m, unsigned *flags);
int sd_rtnl_message_route_get_family(sd_netlink_message *m, int *family);
int sd_rtnl_message_route_set_family(sd_netlink_message *m, int family);
@@ -147,6 +148,7 @@ int sd_rtnl_message_route_get_tos(sd_netlink_message *m, unsigned char *tos);
int sd_rtnl_message_route_get_table(sd_netlink_message *m, unsigned char *table);
int sd_rtnl_message_route_get_dst_prefixlen(sd_netlink_message *m, unsigned char *dst_len);
int sd_rtnl_message_route_get_src_prefixlen(sd_netlink_message *m, unsigned char *src_len);
+int sd_rtnl_message_route_get_type(sd_netlink_message *m, unsigned char *type);
int sd_rtnl_message_neigh_set_flags(sd_netlink_message *m, uint8_t flags);
int sd_rtnl_message_neigh_set_state(sd_netlink_message *m, uint16_t state);