Updated packet processing to handle packets larger than 8192