logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

udp_internals - Internal UDP functions

Author

       Generated automatically by Doxygen for libnetfilter_queue from the source code.

libnetfilter_queue                                Version 1.0.5                                 udp_internals(3)

Detailed Description

       Most user-space programs will never need these.

Function Documentation

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.

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)

See Also