Updated: src/extra/udp.c: Remember to subtract the UDP header length Signed-off-by: Duncan Roe <duncan_roe@xxxxxxxxxxxxxxx> --- src/extra/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extra/udp.c b/src/extra/udp.c index fed23e2..eb301f2 100644 --- a/src/extra/udp.c +++ b/src/extra/udp.c @@ -78,7 +78,7 @@ void *nfq_udp_get_payload(struct udphdr *udph, struct pkt_buff *pktb) EXPORT_SYMBOL unsigned int nfq_udp_get_payload_len(struct udphdr *udph, struct pkt_buff *pktb) { - return pktb->tail - pktb->transport_header; + return pktb->tail - pktb->transport_header - sizeof(struct udphdr); } /** -- 2.14.5