#include <stdio.h>#include <stdbool.h>#include <arpa/inet.h>#include <netinet/ip.h>#include <netinet/ip6.h>#include <netinet/tcp.h>#include <libnetfilter_queue/libnetfilter_queue.h>#include "internal.h"
Functions | |
| uint16_t | nfq_checksum (uint32_t sum, uint16_t *buf, int size) |
| uint16_t | nfq_checksum_tcpudp_ipv4 (struct iphdr *iph) |
| uint16_t | nfq_checksum_tcpudp_ipv6 (struct ip6_hdr *ip6h, void *transport_hdr) |
| uint16_t nfq_checksum | ( | uint32_t | sum, |
| uint16_t * | buf, | ||
| int | size | ||
| ) |
Referenced by nfq_checksum_tcpudp_ipv4(), nfq_checksum_tcpudp_ipv6(), and nfq_ip_set_checksum().

| uint16_t nfq_checksum_tcpudp_ipv4 | ( | struct iphdr * | iph | ) |
References len, nfq_checksum(), and payload.
Referenced by nfq_tcp_compute_checksum_ipv4(), and nfq_udp_compute_checksum_ipv4().


| uint16_t nfq_checksum_tcpudp_ipv6 | ( | struct ip6_hdr * | ip6h, |
| void * | transport_hdr | ||
| ) |
References len, nfq_checksum(), and payload.
Referenced by nfq_tcp_compute_checksum_ipv6(), and nfq_udp_compute_checksum_ipv6().

