ipt_time fixes (resend, sorry)
sj-netfilter at cookinglinux.org
Fri Jan 14 23:47:22 CET 2005
> 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.
More information about the netfilter-devel