added copying fields from another packet and adjusting maximum length