core/net/rime/ipolite: stop ctimer and reset queuebuf pointer when canceling old send

Ipolite is used by netflood and route-discovery modules among others. If a route request is yet to be re-broadcasted and a local route discovery is started (interval == 0), the previous queuebuf used is freed but ctimer and queuebuf pointer is left unchanged. This causes corrupt route requests to be sent, invalid routing tables to be formed, memcmp() on NULL pointer on receive, and other undefined behavior.

Signed-off-by: Oskar Nordquist <oskar.nordquist@crlsweden.com>
llsec: Fixed MIC length; reject unsupported security levels
Merge pull request #828 from oskarnp/pr-ipolite-fix

ipolite: stop ctimer and reset queuebuf pointer when canceling old send
Merge pull request #865 from kkrentz/mic-length-fix

llsec: Fixed MIC length
Moved thread states from module to header
Merge pull request #874 from marcas756/PullReq-MT_STATES

Enhancement : Moved thread states from module to header