According to Jan:
While the fields of struct xt_time are uints, the defined
time_t span is by definition 0..231-1, i.e. it should be
INT_MAX, not UINT_MAX.
/* ...and have no date-begin or date-end boundary */
info->date_start = 0;
- info->date_stop = UINT_MAX;
+ info->date_stop = INT_MAX;
/* local time is default */
info->flags |= XT_TIME_LOCAL_TZ;
printf("starting from ");
time_print_date(info->date_start, NULL);
}
- if (info->date_stop != UINT_MAX) {
+ if (info->date_stop != INT_MAX) {
printf("until date ");
time_print_date(info->date_stop, NULL);
}