summaryrefslogtreecommitdiff
path: root/src/systemd/sd-rtnl.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-02-08 12:37:05 +0100
committerTom Gundersen <teg@jklm.no>2015-02-08 17:43:39 +0100
commit4af7b60d428765c2d2c66c46f416f6dae55e9ddb (patch)
treeed1f20a91b4c4c5a87d73fbba4eb2f9c875ec65c /src/systemd/sd-rtnl.h
parent02f500532e4823584aae43cbe762914b4a0c0254 (diff)
sd-rtnl: extend type system to allow address-family to decide the union members
So far we only supported selecting them by sibling attributes. (This stuff is all a bit crazy, but there seems to be no other way...)
Diffstat (limited to 'src/systemd/sd-rtnl.h')
-rw-r--r--src/systemd/sd-rtnl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/sd-rtnl.h b/src/systemd/sd-rtnl.h
index 0eb55470e..be318e58a 100644
--- a/src/systemd/sd-rtnl.h
+++ b/src/systemd/sd-rtnl.h
@@ -88,6 +88,8 @@ int sd_rtnl_message_get_errno(sd_rtnl_message *m);
int sd_rtnl_message_get_type(sd_rtnl_message *m, uint16_t *type);
int sd_rtnl_message_is_broadcast(sd_rtnl_message *m);
+int sd_rtnl_message_get_family(sd_rtnl_message *m, int *family);
+
int sd_rtnl_message_addr_set_prefixlen(sd_rtnl_message *m, unsigned char prefixlen);
int sd_rtnl_message_addr_set_scope(sd_rtnl_message *m, unsigned char scope);
int sd_rtnl_message_addr_set_flags(sd_rtnl_message *m, unsigned char flags);