Looking for examples of the python wrapper

Teto mattator at gmail.com
Thu Sep 5 14:03:23 EDT 2013


Thanks for commiting the patches.

I thnik there is a bug with py_nl_cb_set/py_nl_cb_err . The first
registration always fail (I've changed the order of registrations
etc..) whereas the following cb registrations work.
pynl_find_cbinfo: cb=0x2005a30: not found
pynl_get_cbinfo: cb=0x2005a30: added 0x1f156b0
py_nl_cb_err: cb=0x2005a30, info=0x1f156b0, kind=3
pynl_find_cbinfo: cb=0x2005a30: found=0x1f156b0
pynl_get_cbinfo: cb=0x2005a30: done
py_nl_cb_set: cb=0x2005a30, info=0x1f156b0, type=0, kind=3

I've joined a copy of the file which is a slight modification of the
commited example. As I needed nl_socket_add_membership, I've added it
to the bindings.



Matt


On Fri, Aug 30, 2013 at 9:55 AM, Arend van Spriel <arend at broadcom.com> wrote:
> On 08/29/13 11:59, Thomas Graf wrote:
>>
>> On 08/28/13 at 09:46pm, Teto wrote:
>>>
>>> Hi,
>>>
>>> I am really interested in using your python wrapper. I've compiled it
>>> from trunk. Before losing a lot of time trying to find how it works, I
>>> was wondering if you had any example available you could send on this
>>> mailing-list please ?
>>>
>>> I am especially interested in the genl wrapper (that's why I
>>> downloaded i from trunk) to subscribe to a custom netlink family
>>> requests.
>>
>>
>> Arend, do you have examples to share?
>
>
> I have. They are mainly on nl80211 family (I am biased to that). I will
> share them through a patch.
>
> Regards,
> Arend
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daemon.py
Type: application/octet-stream
Size: 3479 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20130905/a2c4bbdd/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-nl_socket_add_membership-binding.patch
Type: application/octet-stream
Size: 776 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20130905/a2c4bbdd/attachment-0001.obj>


More information about the libnl mailing list