[PATCH 4/7] tcp: Simplify packet length calculation when preparing headers