From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jacky Luk" Subject: About the using of libnetfilter_queue! Date: Wed, 05 Nov 2008 00:14:07 +0800 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org Cc: michael.tso@primecreation.com, michael.soong@primecreation.com Hi, I have some questions about the using of libnetfilter_queue. I use the RHEL 5.2 to develop my application (Kernel: 2.6.18-92.el5). I found that there are several strange phenomena when using the API of the libnetfilter_queue. 1. The nfq_get_timestamp() always returns the same value of the timestamp for all packets retrieved from the NFQUEUE. What is the cause of this problem? 2. I cannot set the maximum length of the queue by using the function nfq_set_queue_maxlen(). This function always returns -1 even though I have inputted the correct parameters into this function. I have searched about this issue in Google and someone said that kernel >= 2.6.20 would be supported to use this function. Is it true? If so, how can I set the maximum length of the queue when I use the kernel = 2.6.18? Thank you very much! Regards, Jacky Luk