---
name: "nfq_udp_compute_checksum_ipv6"
section: "3"
platform: "linux"
package: "libnetfilter-queue-doc"
version: "1.0.5-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/nfq_udp_compute_checksum_ipv4"
---

# nfq\_udp\_compute\_checksum\_ipv6(3)

Internal UDP functions

Part of [nfq\_udp\_compute\_checksum\_ipv4(3)](/nfq_udp_compute_checksum_ipv4/3.md).

## NAME

udp\_internals - Internal UDP functions

## SYNOPSIS

### Functions

void **nfq\_udp\_compute\_checksum\_ipv4** (struct udphdr \*udph, struct iphdr \*iph)\
 void **nfq\_udp\_compute\_checksum\_ipv6** (struct udphdr \*udph, struct ip6\_hdr \*ip6h)\

## Detailed Description

Most user-space programs will never need these.

## Function Documentation

### void nfq\_udp\_compute\_checksum\_ipv4 (struct udphdr \* udph, struct iphdr \* iph)

nfq\_udp\_compute\_checksum\_ipv4 - sets up the UDP checksum in a UDP/IPv4 packet

**Parameters**

*udph* pointer to the UDP header \
 *iph* pointer to the IPv4 header

**Note**

**nfq\_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**.

### void nfq\_udp\_compute\_checksum\_ipv6 (struct udphdr \* udph, struct ip6\_hdr \* ip6h)

nfq\_udp\_compute\_checksum\_ipv6 - sets up the UDP checksum in a UDP/IPv6 packet

**Parameters**

*udph* pointer to the UDP header \
 *ip6h* pointer to the IPv6 header

**Note**

**nfq\_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**.

## Author

Generated automatically by Doxygen for libnetfilter\_queue from the source code.
