Search Linux Wireless

Re: interested in py80211?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/12/2013 10:02 AM, Johannes Berg wrote:
Ever since my first contact with Python I tend to favor it over other
>scripting alternatives so I decided to scratch my itch with that and
>another old acquaintance called SWIG. With those I went to create
>py80211. A first attempt was to have SWIG create a wrapper API directly
>exposing the libnl-3 API, but that did not feel comfortable in a
>scripting environment. So the level of abstraction is a bit higher. It
>is just in a kick-off state (eg. can only send u32 attributes), but I
>decided to push it to github anyway.
Another approach might be exposing the libnl APIs and then build a
higher-level library in python. Have you considered that? That might
make it useful to other users of netlink as well, while keeping a 'nice'
nl80211 API?

Hi Johannes,

It has been a while that I touched this topic. It is a spare-time project and that is somewhat limited. Since then I added genl support to libnl python API. I want to extract part of py80211 from nl80211.[ch] files. The easy part were the attribute ids and enum values from nl80211.h. The hurdle I want to leap know is extracting message layout information from nl80211.c. Do the struct nla_policy definitions hold all the information or would it be better to get it from the .doit callbacks.

Regards,
Arend

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux