About libipq

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux