Linux Netfilter discussions
 help / color / mirror / Atom feed
* FW: libipq question
@ 2004-04-22 10:40 Moshe Ashkenazi
  0 siblings, 0 replies; only message in thread
From: Moshe Ashkenazi @ 2004-04-22 10:40 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]

Hi, List -
 
I'm using QUEUE target in order to send TCP packets to user space, using
"IPQ_COPY_PACKET" I'm telling the kernel that I want the entire packet.
 
I know that the kernel send to user space the following structure
"ipq_packet_msg_t", and this structure include the payload member which
include the optional packet data.
 
When I'm examining the content of the payload array I see that it
include the following:
20 bytes IP header -> 20 bytes TCP header, and 20 bytes????
 
My questions are:
1.	What should the payload include?
2.	What are the last 20 bytes in the payload?
 
Example of payload array:
----- Optional packet data -----
45 10  0 3c f8 f8 40  0 3f  6 6f 64 c2 1d 28 90
c0 a8 27 f9 82 e7  4 d2 cf 1f 40 f5  0  0  0  0
a0  2 16 d0 f7 eb  0  0  2  4  5 b4  4  2  8  a
16 20 b8  d  0  0  0  0  1  3  3  0

[-- Attachment #2: Type: text/html, Size: 8634 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-22 10:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 10:40 FW: libipq question Moshe Ashkenazi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox