summaryrefslogtreecommitdiffstats
path: root/examples/genl-family-get.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-04-05 18:47:04 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2010-04-05 18:47:04 +0200
commit8e9a6ecf73b4c67c21b707228b7a621dae6804c6 (patch)
tree840a99c80f948fa3a265f411b651ea5987e11fef /examples/genl-family-get.c
parentad3f11f8aaff3d24a932f2f55b368510cdd23c65 (diff)
more consistency name issues: rename get_data*() to get_payload*()
This includes renaming get_tail() to get_payload_tail() Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/genl-family-get.c')
-rw-r--r--examples/genl-family-get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/genl-family-get.c b/examples/genl-family-get.c
index ddbb557..674a529 100644
--- a/examples/genl-family-get.c
+++ b/examples/genl-family-get.c
@@ -146,7 +146,7 @@ static int data_attr_cb(const struct nlattr *attr, void *data)
static int data_cb(const struct nlmsghdr *nlh, void *data)
{
struct nlattr *tb[CTRL_ATTR_MAX+1] = {};
- struct genlmsghdr *genl = mnl_nlmsg_get_data(nlh);
+ struct genlmsghdr *genl = mnl_nlmsg_get_payload(nlh);
mnl_attr_parse(nlh, sizeof(*genl), data_attr_cb, tb);
if (tb[CTRL_ATTR_FAMILY_NAME]) {