On Mon, 2013-11-11 at 09:42 +0100, Arend van Spriel wrote: > 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. Well, you probably can't get it in a scripted fashion from the doit callbacks. The policy certainly has the first level information, but as soon as you have nested information it will no longer work. The policy also doesn't always cover data fram the kernel (i.e. kernel->userspace encoding) since the kernel doesn't have to verify that. johannes -- 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