From 1eab5bedb6f024e5512d485ffd81d18d978ef3e3 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 20 Aug 2012 19:48:05 +0200 Subject: 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 --- src/extra/udp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/extra/udp.c') 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, -- cgit v1.2.3