summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2010-11-07 20:38:35 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2010-11-07 20:40:27 +0100
commitea4b5f90662c63d6ceccc7c9c851dd183e65d0e6 (patch)
tree6eda30a414528cafd65c5f86f613e6def7fade34 /examples
parent843ba20a46fee91f6e3e270dd6a4266bb3876174 (diff)
nlmsg: rework mnl_nlmsg_fprintf
This patch reworks mnl_nlmsg_fprintf. It breaks backward compatibility of this function, there was no way to improve it without doing so (and we are still in time to break thing, BTW). Signed-off-bu: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/rtnl/rtnl-link-set.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/rtnl/rtnl-link-set.c b/examples/rtnl/rtnl-link-set.c
index 00afe27..28b376c 100644
--- a/examples/rtnl/rtnl-link-set.c
+++ b/examples/rtnl/rtnl-link-set.c
@@ -63,7 +63,8 @@ int main(int argc, char *argv[])
}
portid = mnl_socket_get_portid(nl);
- mnl_nlmsg_fprintf(stdout, nlh);
+ mnl_nlmsg_fprintf(stdout, nlh, nlh->nlmsg_len,
+ sizeof(struct ifinfomsg));
if (mnl_socket_sendto(nl, nlh, nlh->nlmsg_len) < 0) {
perror("mnl_socket_send");