voidnfq_udp_compute_checksum_ipv4(structudphdr*udph,structiphdr*iph)
nfq_udp_compute_checksum_ipv4 - sets up the UDP checksum in a UDP/IPv4 packet
Parametersudph pointer to the UDP header
iph pointer to the IPv4 header
Notenfq_udp_mangle_ipv4() invokes this function. As long as developers always use nfq_udp_mangle_ipv4
when changing the content of a UDP message, there is no need to call nfq_udp_compute_checksum_ipv4.
Definition at line 108 of file udp.c.
voidnfq_udp_compute_checksum_ipv6(structudphdr*udph,structip6_hdr*ip6h)
nfq_udp_compute_checksum_ipv6 - sets up the UDP checksum in a UDP/IPv6 packet
Parametersudph pointer to the UDP header
ip6h pointer to the IPv6 header
Notenfq_udp_mangle_ipv6() invokes this function. As long as developers always use nfq_udp_mangle_ipv6
when changing the content of a UDP message, there is no need to call nfq_udp_compute_checksum_ipv6.
Definition at line 126 of file udp.c.