Instead of implementing IPv4 header checksum creation everywhere,
authorbluhm <bluhm@openbsd.org>
Sat, 13 May 2023 13:35:17 +0000 (13:35 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 13 May 2023 13:35:17 +0000 (13:35 +0000)
commit55055d619d36cc45f8c6891404c51cd405214e86
treedb1dee3a234a25dc0b972d2ca8287c2dfdc26cba
parenta375eb795cc698fba4b8d5cb4d5f6a02e53fc10c
Instead of implementing IPv4 header checksum creation everywhere,
introduce in_hdr_cksum_out().  It is used like in_proto_cksum_out().
OK claudio@
sys/net/if_bridge.c
sys/net/if_gre.c
sys/net/pf.c
sys/netinet/in.h
sys/netinet/ip_divert.c
sys/netinet/ip_output.c
sys/netinet/ipsec_input.c
sys/netinet/tcp_output.c
sys/netmpls/mpls_input.c
sys/netmpls/mpls_output.c