summaryrefslogtreecommitdiff
path: root/doc/src/examples/nla_ok.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-07-14 12:48:00 +0200
committerThomas Graf <tgraf@suug.ch>2011-07-14 12:48:00 +0200
commit63548f5664e0e149f5e51219ad6f582f985e3c42 (patch)
treebcb04f5d3beac0aaa887a6cd75ef791faefdfae4 /doc/src/examples/nla_ok.c
parent21d52eabba00089e3319575616a429fb75309cb7 (diff)
downloadlibnl-master.tar.gz
documentation updatesHEADmaster
Diffstat (limited to 'doc/src/examples/nla_ok.c')
-rw-r--r--doc/src/examples/nla_ok.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/doc/src/examples/nla_ok.c b/doc/src/examples/nla_ok.c
deleted file mode 100644
index 4485a96..0000000
--- a/doc/src/examples/nla_ok.c
+++ /dev/null
@@ -1,10 +0,0 @@
-#include <netlink/msg.h>
-#include <netlink/attr.h>
-
-struct nlattr *hdr = nlmsg_attrdata(msg, 0);
-int remaining = nlmsg_attrlen(msg, 0);
-
-while (nla_ok(hdr, remaining)) {
- /* parse attribute here */
- hdr = nla_next(hdr, &remaining);
-};