kern/55984: [patch] time based firewalling support for ipfw2
Don Bowman
don at sandvine.com
Wed Sep 10 19:10:15 PDT 2003
The following reply was made to PR kern/55984; it has been noted by GNATS.
From: Don Bowman <don at sandvine.com>
To: 'gnats' <freebsd-gnats-submit at FreeBSD.org>
Cc:
Subject: Re: kern/55984: [patch] time based firewalling support for ipfw2
Date: Wed, 10 Sep 2003 22:03:59 -0400
suggest using 'time_second' instead of microtime() in ipfw_chk().
case O_TIME:
{
u_long from, to, sum;
long tzoff;
tzoff = ((ipfw_insn_time
*)cmd)->tzoff;
from = ((ipfw_insn_time
*)cmd)->from;
to = ((ipfw_insn_time *)cmd)->to;
sum = ipfw_calc_time_sum(time_second
+ t
zoff);
match = (sum >= from && sum <= to);
}
break;
More information about the freebsd-ipfw
mailing list