All of lore.kernel.org
 help / color / mirror / Atom feed
* [ULOGD1 PATCH] Fix PCAP len (Jaap Keuter)
@ 2008-06-18 14:58 Eric Leblond
  2008-06-18 15:16 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Leblond @ 2008-06-18 14:58 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Eric Leblond

This is a application of patch provided by Jaap Keuter. Application will close
bugzilla 535. pcap len was set to value of the pointer to raw data.

Signed-off-by: Eric Leblond <eric@inl.fr>
---
 pcap/ulogd_PCAP.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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
-- 
1.5.5.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-18 15:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-18 14:58 [ULOGD1 PATCH] Fix PCAP len (Jaap Keuter) Eric Leblond
2008-06-18 15:16 ` Pablo Neira Ayuso
2008-06-18 15:21   ` Patrick McHardy
2008-06-18 15:23     ` Pablo Neira Ayuso
2008-06-18 15:25       ` Patrick McHardy
2008-06-18 15:33         ` Eric Leblond

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.