All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] time match does not track DST changes
@ 2004-09-24 23:11 Phil Oester
  2004-09-26  7:43 ` Harald Welte
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Oester @ 2004-09-24 23:11 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 540 bytes --]

The time match does not follow daylight savings time changes.
Without adding timezone information to the kernel, fixing the
module doesn't seem possible.  

I considered adding a /proc entry to configure whether to add
an hour or not, but doing so would still require user intervention,
and the user can just as easily fix things up with this:

   hwclock --systohc ; hwclock --hctosys

So, the below just adds a couple notes so users are aware of 
this limitation.

Unless someone thinks of a better idea, this closes bugzilla #75.


Phil

[-- Attachment #2: patch-time --]
[-- Type: text/plain, Size: 1217 bytes --]

diff -ru ipt-orig/extensions/libipt_time.c ipt-new/extensions/libipt_time.c
--- ipt-orig/extensions/libipt_time.c	2004-05-16 01:48:04.000000000 -0700
+++ ipt-new/extensions/libipt_time.c	2004-09-24 16:03:30.289605227 -0700
@@ -21,6 +21,7 @@
 " [ --timestart value ] [ --timestop value] [ --days listofdays ] [ --datestart value ] [ --datestop value ]\n"
 "          timestart value : HH:MM (default 00:00)\n"
 "          timestop  value : HH:MM (default 23:59)\n"
+"                            Note: daylight savings time changes are not tracked\n"
 "          listofdays value: a list of days to apply\n"
 "                            from Mon,Tue,Wed,Thu,Fri,Sat,Sun\n"
 "                            Coma speparated, no space, case sensitive.\n"
diff -ru pom-orig/time/help pom-new/time/help
--- pom-orig/time/help	2004-05-05 03:11:24.000000000 -0700
+++ pom-new/time/help	2004-09-24 16:01:05.830178992 -0700
@@ -30,3 +30,5 @@
   -A OUTPUT -m time --timestart 8:00 --timestop 18:00 --Days Mon --date-stop 2010
   will match the packets (locally generated) that have a departure timestamp
   in the range 8:00->18:00 on Monday only, until 2010
+
+NOTE: the time match does not track changes in daylight savings time

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] time match does not track DST changes
  2004-09-24 23:11 [PATCH] time match does not track DST changes Phil Oester
@ 2004-09-26  7:43 ` Harald Welte
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Welte @ 2004-09-26  7:43 UTC (permalink / raw)
  To: Phil Oester; +Cc: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 933 bytes --]

On Fri, Sep 24, 2004 at 04:11:26PM -0700, Phil Oester wrote:
> The time match does not follow daylight savings time changes.
> Without adding timezone information to the kernel, fixing the
> module doesn't seem possible.  

Yes, this is one of the reasons why the time match shouldn't be used in
the first place.  Use cron and a small script to modify your ruleset at
the given time(s).

ipt_time will never get into the mainline kernel...

> So, the below just adds a couple notes so users are aware of 
> this limitation.

I'm fine with this.

-- 
- Harald Welte <laforge@netfilter.org>             http://www.netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-09-26  7:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-24 23:11 [PATCH] time match does not track DST changes Phil Oester
2004-09-26  7:43 ` Harald Welte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.