From 1f09fdccb75005a53ba2bb90fb61d4e6f45e8e14 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 12 Apr 2010 18:06:28 +0200 Subject: remove mnl_nlmsg_get_len() function Remove mnl_nlmsg_get_len() since it returns a field of a structure that is public (struct nlmsghdr). We can directly access the header fields and they are not likely to change in the future (at least for this version of Netlink I think). Signed-off-by: Pablo Neira Ayuso --- include/libmnl/libmnl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include') diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index 11eda8a..afb298a 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -51,8 +51,7 @@ extern int mnl_nlmsg_seq_ok(const struct nlmsghdr *nlh, unsigned int seq); /* Netlink portID checking */ int mnl_nlmsg_portid_ok(const struct nlmsghdr *nlh, unsigned int portid); -/* Netlink header getters */ -extern uint16_t mnl_nlmsg_get_len(const struct nlmsghdr *nlh); +/* Netlink message getters */ extern void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh); extern void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, int offset); extern void *mnl_nlmsg_get_payload_tail(const struct nlmsghdr *nlh); -- cgit v1.2.3