[PATCH v7 4/8] udp: refactor UDP header update functions