Correct the calculation of an IP packet total length