A mini libpcap adapter in C++, with a php module using SWIG