Friday, January 29, 2016

Refactored my libusipp packet framework's receivingfunctions (sending will be optimized later) to:o Reflect new libpcap API, in particular things changed about selectable fd's and immediate mode. It works best if you just pull & build libpcap, as most distros and OSX may have outdated libpcaps installed (you will notice by missing symbols)o refactoring sniffpack() functions to not longer rely on dynamically allocated memory but using fix buffers and offsets to handle incoming packets (much) faster. The new[]/delete[] memory allocation was a hangover from the 90's when I initially didn't build it with QUANTUM in mind.o Implementing RX classes for string and fd receiving (tuntap support)o Adding support to allow sniffing from file:// devices to debug via wireshark packet captures later on.o support QoS data on wifi linksSome things in libpcap still suck, for instance the timeoutfunction doesn't accept stuct timeval and cannot be called oncea capture handle has been activated. This forces me tokeep my own timeout functionality which is sub-optimal.As usual, be warned about API changes in libusi++: I add/changewhatever I feel is needed there. API stability is not mymain goal.Happy QUANTUM your IoT! :p