summaryrefslogtreecommitdiffstats
path: root/src/extra/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/extra/udp.c')
-rw-r--r--src/extra/udp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/extra/udp.c b/src/extra/udp.c
index 5f7f9ec..f0f6d2f 100644
--- a/src/extra/udp.c
+++ b/src/extra/udp.c
@@ -114,6 +114,16 @@ nfq_udp_compute_checksum_ipv6(struct udphdr *udph, struct ip6_hdr *ip6h)
}
EXPORT_SYMBOL(nfq_udp_compute_checksum_ipv6);
+/**
+ * nfq_tcp_mangle_ipv4 - mangle TCP/IPv4 packet buffer
+ * \param pktb: pointer to network packet buffer
+ * \param match_offset: offset to content that you want to mangle
+ * \param match_len: length of the existing content you want to mangle
+ * \param rep_buffer: pointer to data you want to use to replace current content
+ * \param rep_len: length of data you want to use to replace current content
+ *
+ * \note This function recalculates the IPv4 and TCP checksums for you.
+ */
int
nfq_udp_mangle_ipv4(struct pkt_buff *pkt,
unsigned int match_offset, unsigned int match_len,