summaryrefslogtreecommitdiffstats
path: root/src/extra/udp.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2012-08-20 19:48:05 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2012-08-20 19:48:05 +0200
commit1eab5bedb6f024e5512d485ffd81d18d978ef3e3 (patch)
treeb29a78b7bd4593ca5441ba7a4889056e164ae2c8 /src/extra/udp.c
parent3c42a36f3f170860b28d47ef028301276b78378b (diff)
src: update doxygen documentation for new API for libmnl
This patch updates the doxygen documentation for the new API. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
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,