diff options
author | Thomas Graf <tgraf@suug.ch> | 2011-07-14 12:48:00 +0200 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2011-07-14 12:48:00 +0200 |
commit | 63548f5664e0e149f5e51219ad6f582f985e3c42 (patch) | |
tree | bcb04f5d3beac0aaa887a6cd75ef791faefdfae4 /doc/src/examples/NLA_PUT.c | |
parent | 21d52eabba00089e3319575616a429fb75309cb7 (diff) | |
download | libnl-master.tar.gz |
Diffstat (limited to 'doc/src/examples/NLA_PUT.c')
-rw-r--r-- | doc/src/examples/NLA_PUT.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/doc/src/examples/NLA_PUT.c b/doc/src/examples/NLA_PUT.c deleted file mode 100644 index c3afb47..0000000 --- a/doc/src/examples/NLA_PUT.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <netlink/msg.h> -#include <netlink/attr.h> - -void construct_attrs(struct nl_msg *msg) -{ - NLA_PUT_STRING(msg, MY_ATTR_FOO1, "some text"); - NLA_PUT_U32(msg, MY_ATTR_FOO1, 0x1010); - NLA_PUT_FLAG(msg, MY_ATTR_FOO3, 1); - - return 0; - -nla_put_failure: - /* NLA_PUT* macros jump here in case of an error */ - return -EMSGSIZE; -} |