wraith-wireless / PyRIC

Python wireless library for Linux
http://wraith-wireless.github.io/PyRIC
Other
92 stars 50 forks source link

nlmsg_fromstream can incorrectly return error based on stream size #14

Closed wraith-wireless closed 8 years ago

wraith-wireless commented 8 years ago

Line 436: if t == nlh.NLMSG_ERROR or l == nlh.NLMSGACKLEN:

Some messages are 36 bytes, nlh.NLMSGACKLEN which causes nlmsg_fromstream to incorrectly raise an error. Have to rework this.

NOTE: this will not cause failure in the execution of pyw. However, if attempting to parse netlink messages from strace and iw, can result in incorrectly throwing error

wraith-wireless commented 8 years ago

Added override parameter for debugging/netlink output parsing