FastClick

Elements / UDP

SetUDPChecksum

sets UDP packets' checksums

SYNOPSIS§

SetUDPChecksum()

Batching: Batching natively supported
Ports: 1 input, 1-2 outputs
Processing: agnostic, but output 1 is push

DESCRIPTION§

Input packets must be UDP in IP (the protocol field isn't checked).

Calculates the UDP checksum and sets the UDP header's checksum field. Uses IP header fields to generate the pseudo-header.

If input packets are IP fragments, or the UDP length is longer than the packet, then pushes the input packets to the 2nd output, or drops them with a warning if there is no 2nd output.

SEE ALSO§

CheckUDPHeader, SetIPChecksum, CheckIPHeader, SetTCPChecksum

Generated by click-elem2man from ../elements/tcpudp/setudpchecksum.hh:8 on 2026/11/02.