Packet filtering in Lua