* About libipq
@ 2002-10-24 16:26 Yan Li
0 siblings, 0 replies; 2+ messages in thread
From: Yan Li @ 2002-10-24 16:26 UTC (permalink / raw)
To: netfilter
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
Hi all,
I wrote a small program which copy the input packets from the kernel to the userspace using libipq. And the packets are stored in a buffer in userspace which is acturally an array, say buf.
Using:
ipq_packet_msg_t * m = ipq_get_packet(buf);
I can access some parameters of the packets like the packet ID, packet length which are defined in the struct ipq_packet_msg_t. For example, m->packet_id points to the packet ID. But how can I get other information of the packets, like the source and destination address, the protocol, etc. Is there any function or should I read different unit of the array, buf, to do that?
I am only a beginner. Many thanks for your kind reply.
Yan
[-- Attachment #2: Type: text/html, Size: 1822 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* About libipq
@ 2002-10-24 16:52 Yan Li
0 siblings, 0 replies; 2+ messages in thread
From: Yan Li @ 2002-10-24 16:52 UTC (permalink / raw)
To: netfilter
Hi all,
I wrote a small program which copy the input packets from the kernel to the
userspace using libipq. And the packets are stored in a buffer in userspace
which is actually an array, say buf.
Using:
ipq_packet_msg_t * m = ipq_get_packet(buf);
I can access some parameters of the packets like the packet ID, packet
length which are defined in the struct ipq_packet_msg_t. For example,
m->packet_id points to the packet ID. But how can I get other information of
the packets, like the source and destination address, the protocol, etc. Is
there any function or should I read different unit of the array, buf, to do
that?
I am only a beginner. Many thanks for your kind reply.
Yan
_________________________________________________________________
Surf the Web without missing calls! Get MSN Broadband.
http://resourcecenter.msn.com/access/plans/freeactivation.asp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-24 16:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24 16:26 About libipq Yan Li
2002-10-24 16:52 Yan Li
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.