summaryrefslogtreecommitdiffstats
path: root/src/systemd/sd-netlink.h
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@redhat.com>2016-05-03 19:17:48 +0200
committerSusant Sahani <ssahani@redhat.com>2016-05-03 19:17:48 +0200
commitec1bb279316bd262346d37554f930b69b63104bb (patch)
tree25098ee0128336ba425599ff805edb0fdd25eaa5 /src/systemd/sd-netlink.h
parentsd-netlink: fix sd_netlink_message_append_data (diff)
downloadsystemd-ec1bb279316bd262346d37554f930b69b63104bb.tar.xz
systemd-ec1bb279316bd262346d37554f930b69b63104bb.zip
sd-netlink: introduce route attribute set API
Introduce 1. sd_rtnl_message_route_set_table to set table ID 2. sd_rtnl_message_route_set_family to set family Both required to configure route properties.
Diffstat (limited to '')
-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 af7a797567..3ae110c080 100644
--- a/src/systemd/sd-netlink.h
+++ b/src/systemd/sd-netlink.h
@@ -137,8 +137,10 @@ int sd_rtnl_message_route_set_dst_prefixlen(sd_netlink_message *m, unsigned char
int sd_rtnl_message_route_set_src_prefixlen(sd_netlink_message *m, unsigned char prefixlen);
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_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);
int sd_rtnl_message_route_get_protocol(sd_netlink_message *m, unsigned char *protocol);
int sd_rtnl_message_route_get_scope(sd_netlink_message *m, unsigned char *scope);
int sd_rtnl_message_route_get_tos(sd_netlink_message *m, unsigned char *tos);