Home | History | Annotate | Download | only in netfilter
      1 #ifndef _XT_TIME_H
      2 #define _XT_TIME_H 1
      3 
      4 struct xt_time_info {
      5 	__u32 date_start;
      6 	__u32 date_stop;
      7 	__u32 daytime_start;
      8 	__u32 daytime_stop;
      9 	__u32 monthdays_match;
     10 	__u8 weekdays_match;
     11 	__u8 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 */
     26