Removed a wrong line in the code to receive packets from kni interfaces. Now it seems to work