summaryrefslogtreecommitdiff
path: root/src/systemd/sd-rtnl.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-02 01:35:11 +0100
committerTom Gundersen <teg@jklm.no>2014-12-02 10:19:53 +0100
commit20dff6c4ff4f6e1b88c841e523ce9cff0e150fdf (patch)
tree721cbe307e563096cbd74bb969aae4c050d51ecd /src/systemd/sd-rtnl.h
parente559b38493e6e0bc0214af2bce5aa940a8a15006 (diff)
downloadsystemd-20dff6c4ff4f6e1b88c841e523ce9cff0e150fdf.tar.gz
sd-rtnl: add sd_rtnl_message_{new_neigh,neigh_get_{family,ifindex}}
Diffstat (limited to 'src/systemd/sd-rtnl.h')
-rw-r--r--src/systemd/sd-rtnl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/systemd/sd-rtnl.h b/src/systemd/sd-rtnl.h
index 14eb9b802e..15eaa26878 100644
--- a/src/systemd/sd-rtnl.h
+++ b/src/systemd/sd-rtnl.h
@@ -75,6 +75,7 @@ int sd_rtnl_message_new_addr(sd_rtnl *rtnl, sd_rtnl_message **ret, uint16_t msg_
int family);
int sd_rtnl_message_new_route(sd_rtnl *rtnl, sd_rtnl_message **ret, uint16_t nlmsg_type,
int rtm_family, unsigned char rtm_protocol);
+int sd_rtnl_message_new_neigh(sd_rtnl *rtnl, sd_rtnl_message **ret, uint16_t msg_type, int index, int nda_family);
sd_rtnl_message *sd_rtnl_message_ref(sd_rtnl_message *m);
sd_rtnl_message *sd_rtnl_message_unref(sd_rtnl_message *m);
@@ -104,6 +105,9 @@ int sd_rtnl_message_route_set_dst_prefixlen(sd_rtnl_message *m, unsigned char pr
int sd_rtnl_message_route_set_scope(sd_rtnl_message *m, unsigned char scope);
int sd_rtnl_message_route_get_family(sd_rtnl_message *m, int *family);
+int sd_rtnl_message_neigh_get_family(sd_rtnl_message *m, int *family);
+int sd_rtnl_message_neigh_get_ifindex(sd_rtnl_message *m, int *family);
+
int sd_rtnl_message_append_string(sd_rtnl_message *m, unsigned short type, const char *data);
int sd_rtnl_message_append_u8(sd_rtnl_message *m, unsigned short type, uint8_t data);
int sd_rtnl_message_append_u16(sd_rtnl_message *m, unsigned short type, uint16_t data);