From d2ecdcd90521a125d469198f37ca2936d0ec544f Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 18 Jun 2008 17:15:41 +0200 Subject: pcap len was set to value of the pointer to raw data. This is a application of patch provided by Jaap Keuter. Application will close bugzilla 535. Signed-off-by: Eric Leblond --- pcap/ulogd_PCAP.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcap/ulogd_PCAP.c b/pcap/ulogd_PCAP.c index 686fe47..7d67c28 100644 --- a/pcap/ulogd_PCAP.c +++ b/pcap/ulogd_PCAP.c @@ -131,7 +131,7 @@ static int pcap_output(ulog_iret_t *res) { struct pcap_sf_pkthdr pchdr; - pchdr.caplen = GET_VALUE(1).ui32; + pchdr.caplen = GET_VALUE(2).ui32; pchdr.len = GET_VALUE(2).ui32; if (GET_FLAGS(3) & ULOGD_RETF_VALID -- cgit v1.2.3