Date: Wed, 10 Sep 2003 19:10:14 -0700 (PDT) From: Don Bowman <don@sandvine.com> To: ipfw@FreeBSD.org Subject: Re: kern/55984: [patch] time based firewalling support for ipfw2 Message-ID: <200309110210.h8B2AEvc088277@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR kern/55984; it has been noted by GNATS.
From: Don Bowman <don@sandvine.com>
To: 'gnats' <freebsd-gnats-submit@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;
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309110210.h8B2AEvc088277>
