• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _XT_TIME_H
2 #define _XT_TIME_H 1
3 
4 #include <linux/types.h>
5 
6 struct xt_time_info {
7 	__u32 date_start;
8 	__u32 date_stop;
9 	__u32 daytime_start;
10 	__u32 daytime_stop;
11 	__u32 monthdays_match;
12 	__u8 weekdays_match;
13 	__u8 flags;
14 };
15 
16 enum {
17 	/* Match against local time (instead of UTC) */
18 	XT_TIME_LOCAL_TZ = 1 << 0,
19 	XT_TIME_CONTIGUOUS = 1 << 1,
20 
21 	/* Shortcuts */
22 	XT_TIME_ALL_MONTHDAYS = 0xFFFFFFFE,
23 	XT_TIME_ALL_WEEKDAYS  = 0xFE,
24 	XT_TIME_MIN_DAYTIME   = 0,
25 	XT_TIME_MAX_DAYTIME   = 24 * 60 * 60 - 1,
26 };
27 
28 #endif /* _XT_TIME_H */
29