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

tcp_internals - Internal TCP functions

Author

       Generated automatically by Doxygen for libnetfilter_queue from the source code.

libnetfilter_queue                                Version 1.0.5                                 tcp_internals(3)

Detailed Description

       Most user-space programs will never need these.

Function Documentation

voidnfq_tcp_compute_checksum_ipv4(structtcphdr*tcph,structiphdr*iph)
       nfq_tcp_compute_checksum_ipv4 - computes IPv4/TCP packet checksum

       Parameterstcph pointer to the TCP header
           iph pointer to the IPv4 header

       Notenfq_tcp_mangle_ipv4() invokes this function. As long as developers always use nfq_tcp_mangle_ipv4
           when changing the content of a TCP message, there is no need to call nfq_tcp_compute_checksum_ipv4.

       Definition at line 108 of file tcp.c.

   voidnfq_tcp_compute_checksum_ipv6(structtcphdr*tcph,structip6_hdr*ip6h)
       nfq_tcp_compute_checksum_ipv6 - computes IPv6/TCP packet checksum

       Parameterstcph pointer to the TCP header
           ip6h pointer to the IPv6 header

       Notenfq_tcp_mangle_ipv6() invokes this function. As long as developers always use nfq_tcp_mangle_ipv6
           when changing the content of a TCP message, there is no need to call nfq_tcp_compute_checksum_ipv6.

       Definition at line 126 of file tcp.c.

Name

       tcp_internals - Internal TCP functions

Synopsis

Functions
       void nfq_tcp_compute_checksum_ipv4 (struct tcphdr *tcph, struct iphdr *iph)
       void nfq_tcp_compute_checksum_ipv6 (struct tcphdr *tcph, struct ip6_hdr *ip6h)

See Also