[U-Boot] [PATCH 11/28] net: Refactor IP, UPD, and ICMP header writing functions