From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Jean Subject: Re: ipt_time fixes (resend, sorry) Date: Fri, 14 Jan 2005 17:47:22 -0500 Message-ID: <41E84BFA.1030900@cookinglinux.org> References: <20050114143722.GA10088@ti64.telemetry-investments.com> <57991.142.169.215.10.1105716756.squirrel@142.169.215.10> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: olenf@ans.pl In-Reply-To: <57991.142.169.215.10.1105716756.squirrel@142.169.215.10> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org I wrote: > I use an ugly hack of this kind: > > /* We might not have a timestamp, get one */ > if (skb->stamp.tv_sec == 0) > do_gettimeofday((struct timeval *)&skb->stamp); > > now = timeval_to_jiffies(&skb->stamp); > > > if (struct->curr != now) > struct->prev = xchg(&struct->curr, now); > Hey, just realized it really doesn't make sense in that module (ipt_time). Sorry, I think I was blinded by my current module. Please discard my post. Samuel