add mangle functions for IPv4/TCP and IPv4/UDP
[platform/upstream/libnetfilter_queue.git] / include / libnetfilter_queue / libnetfilter_queue_ipv4.h
1 #ifndef _LIBNFQUEUE_IPV4_
2 #define _LIBNFQUEUE_IPV4_
3
4 struct pkt_buff;
5 struct iphdr;
6
7 struct iphdr *nfq_ip_get_hdr(struct pkt_buff *pktb);
8 int nfq_ip_set_transport_header(struct pkt_buff *pktb, struct iphdr *iph);
9 void nfq_ip_set_checksum(struct iphdr *iph);
10 int nfq_ip_mangle(struct pkt_buff *pkt, unsigned int dataoff, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len);
11 int nfq_ip_snprintf(char *buf, size_t size, const struct iphdr *iph);
12
13 #endif