No description
Find a file
Arend van Spriel e77ea939c4 add support functions for attributes and callback handlers
added support functions to access the netlink attributes and use
custom callback handlers. Most is wrapped as is, but there are
a couple of special cases handled.

1) void *nla_data(struct nlattr *);
The return value is changed to a Python byte array so it includes
the lenght of the data stream.

2) int nla_parse_nested(...);
This returns a tuple (err, dict). 'err' is the error code and 'dict'
is a dictionary with attribute identifier as key and value represents
a struct nlattr object.

3) macro nla_for_each_nested()
Provide nla_get_nested() which returns a Python list of struct nlattr
objects that is iterable.

4) allocate struct nla_policy array
Provide nla_policy_array() function that allocates consecutive space
in memory for struct nla_policy array entries. Each entry is put in
a Python list so the entry fields can be modified in Python. This
array object can be passed to the nla_parse_nested() function.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
2013-07-18 23:22:18 +02:00
doc Merge branch 'master' of https://github.com/michael-dev/libnl 2013-05-24 14:37:02 +02:00
etc pktloc: support to specify a shift operator for packet locations 2010-11-04 20:01:36 +01:00
include netfilter/queue: introduce nfnl_queue_msg_send_verdict_batch() 2013-06-27 01:16:15 +02:00
lib handle the case where 0 is passed to nl_size2str 2013-07-18 23:10:19 +02:00
m4 doc: Check documentation generation requirements with autoconf 2012-05-09 10:06:24 +02:00
man genl: Update genl-ctrl-list(8) 2012-06-01 13:10:03 +02:00
python add support functions for attributes and callback handlers 2013-07-18 23:22:18 +02:00
src nl-route-add: Add NLM_F_EXCL flag to route add 2013-03-24 10:58:18 +01:00
tests tests: use AM_CFLAGS instead of CFLAGS directly 2013-06-28 18:49:51 +02:00
.gitignore build: use AC_CONFIG_AUX_DIR 2012-11-26 21:03:14 +01:00
autogen.sh doc: Split doc/ into separate packages 2012-10-19 16:16:06 +02:00
ChangeLog libnl 3.2.10 2012-06-06 11:43:53 +02:00
configure.ac 3.2.22 release 2013-05-14 14:09:07 +02:00
COPYING Update COPYING to fix FSF address 2012-01-17 12:38:37 +01:00
libnl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-cli-3.0.pc.in Add libnl-cli-3.0 to pkg-config tool 2011-10-10 11:39:24 +02:00
libnl-genl-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-nf-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
libnl-route-3.0.pc.in Switch to libtool versioning system 2011-09-13 22:58:08 +02:00
Makefile.am make: automake provides a cscope target these days 2012-12-21 13:30:21 +01:00