Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6] / include / linux / netfilter / xt_time.h
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 */