summaryrefslogtreecommitdiffstats
path: root/include/libnetfilter_queue/pktbuff.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-05-31 10:52:46 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-06 14:54:27 +0200
commitffa83b5968b534f679bc34acc506801db3d28d58 (patch)
treeced3718e02b9e43e3174c55146bf967e9bd5ffce /include/libnetfilter_queue/pktbuff.h
parentf40eabb01163f383e2471942da45f32361031e39 (diff)
add mangle functions for IPv4/TCP and IPv4/UDP
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/libnetfilter_queue/pktbuff.h')
-rw-r--r--include/libnetfilter_queue/pktbuff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libnetfilter_queue/pktbuff.h b/include/libnetfilter_queue/pktbuff.h
index a0e7abf..b15ee1e 100644
--- a/include/libnetfilter_queue/pktbuff.h
+++ b/include/libnetfilter_queue/pktbuff.h
@@ -19,4 +19,8 @@ uint8_t *pktb_mac_header(struct pkt_buff *pktb);
uint8_t *pktb_network_header(struct pkt_buff *pktb);
uint8_t *pktb_transport_header(struct pkt_buff *pktb);
+int pktb_mangle(struct pkt_buff *pkt, unsigned int dataoff, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len);
+
+bool pktb_mangled(const struct pkt_buff *pktb);
+
#endif