Portable packet processing modules for OS kernels