Hi, Le mardi 16 octobre 2007 à 10:44 -0400, Khoa Nguyen a écrit : > Hi, > > I am writing a small libipq program to extract packet info. I "queued" > all packets in the OUTPUT chain. It looks like the packet has the same > source and destination packet ( = host interface address). Why is > that? Is there a way in libipq to extract the REAL destination > address? First of all: switch to libnetfilter_queue For your question, libipq sends to userspace the whole content of the packet. Thus there is no potential problem of address rewriting. You can have a look at the following code extract from NuFW: http://docs.nufw.org/doxygen/trunk/html/packetsrv_8c-source.html#l00292 BR, -- Éric Leblond, eleblond@xxxxxx Téléphone : 01 44 89 46 40, Fax : 01 44 89 45 01 INL, http://www.inl.fr
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=