cc965f5140e6db47938f28e9a89a302863b6f904
[platform/upstream/libnetfilter_queue.git] / include / libnetfilter_queue / libnetfilter_queue_tcp.h
1 #ifndef _LIBNFQUEUE_TCP_H_
2 #define _LIBNFQUEUE_TCP_H_
3
4 struct pkt_buff;
5
6 struct tcphdr *nfq_tcp_get_hdr(struct pkt_buff *pktb);
7 void *nfq_tcp_get_payload(struct tcphdr *tcph, struct pkt_buff *pktb);
8 unsigned int nfq_tcp_get_payload_len(struct tcphdr *tcph, struct pkt_buff *pktb);
9
10 struct iphdr;
11 struct ip6_hdr;
12
13 void nfq_tcp_compute_checksum_ipv4(struct tcphdr *tcph, struct iphdr *iph);
14 void nfq_tcp_compute_checksum_ipv6(struct tcphdr *tcph, struct ip6_hdr *ip6h);
15
16 int nfq_tcp_snprintf(char *buf, size_t size, const struct tcphdr *tcp);
17
18 #endif