set IP packet len during marshalling