summaryrefslogtreecommitdiffstats
path: root/src/libsystemd/sd-netlink/netlink-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-02-03 01:06:23 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-02-10 17:28:09 +0100
commit67b19a496173e0401e9f2b7a3591715e0fe22b75 (patch)
treeb63bc8c52d38654ea385f8e6a3d1513eb48d32ac /src/libsystemd/sd-netlink/netlink-util.h
parentnetwork: shorten code by using SYNTHETIC_ERRNO() (diff)
downloadsystemd-67b19a496173e0401e9f2b7a3591715e0fe22b75.tar.xz
systemd-67b19a496173e0401e9f2b7a3591715e0fe22b75.zip
sd-netlink: unify sd_netlink_message_append_in{,6}_addr() and _sockaddr_in{,6}()
Diffstat (limited to 'src/libsystemd/sd-netlink/netlink-util.h')
-rw-r--r--src/libsystemd/sd-netlink/netlink-util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-util.h b/src/libsystemd/sd-netlink/netlink-util.h
index d2723285a6..0d01a4bd0e 100644
--- a/src/libsystemd/sd-netlink/netlink-util.h
+++ b/src/libsystemd/sd-netlink/netlink-util.h
@@ -3,6 +3,8 @@
#include "sd-netlink.h"
+#include "in-addr-util.h"
+#include "socket-util.h"
#include "util.h"
int rtnl_message_new_synthetic_error(sd_netlink *rtnl, int error, uint32_t serial, sd_netlink_message **ret);
@@ -58,3 +60,6 @@ int rtnl_log_create_error(int r);
(sd_netlink_destroy_t) _destroy_, \
userdata, __func__); \
})
+
+int netlink_message_append_in_addr_union(sd_netlink_message *m, unsigned short type, int family, const union in_addr_union *data);
+int netlink_message_append_sockaddr_union(sd_netlink_message *m, unsigned short type, const union sockaddr_union *data);