diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2007-09-28 17:46:43 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:40 -0400 |
commit | ee4411a1b1e0b679c99686629b5eab5a072ce49f (patch) | |
tree | 3d8e317c2207da074af5d3c57367d95ebb537efc /include | |
parent | 6b6ec99a03601aba0419f34e17630f7aa8d68e5f (diff) |
[NETFILTER]: x_tables: add xt_time match
This is ipt_time from POM-ng enhanced by the following:
* xtables/ipv6 support
* second granularity for daytime
* day-of-month support (for example "match on the 15th of each month")
* match against UTC or local timezone
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/xt_time.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/netfilter/xt_time.h b/include/linux/netfilter/xt_time.h new file mode 100644 index 000000000000..14b6df412c9f --- /dev/null +++ b/include/linux/netfilter/xt_time.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef _XT_TIME_H | ||
2 | #define _XT_TIME_H 1 | ||
3 | |||
4 | struct xt_time_info { | ||
5 | u_int32_t date_start; | ||
6 | u_int32_t date_stop; | ||
7 | u_int32_t daytime_start; | ||
8 | u_int32_t daytime_stop; | ||
9 | u_int32_t monthdays_match; | ||
10 | u_int8_t weekdays_match; | ||
11 | u_int8_t flags; | ||
12 | }; | ||
13 | |||
14 | enum { | ||
15 | /* Match against local time (instead of UTC) */ | ||
16 | XT_TIME_LOCAL_TZ = 1 << 0, | ||
17 | |||
18 | /* Shortcuts */ | ||
19 | XT_TIME_ALL_MONTHDAYS = 0xFFFFFFFE, | ||
20 | XT_TIME_ALL_WEEKDAYS = 0xFE, | ||
21 | XT_TIME_MIN_DAYTIME = 0, | ||
22 | XT_TIME_MAX_DAYTIME = 24 * 60 * 60 - 1, | ||
23 | }; | ||
24 | |||
25 | #endif /* _XT_TIME_H */ | ||