Brian Davidson <davidson.brian@xxxxxxxxx> wrote: > meta hour rules don't display properly after being created when the > hour is on or after 00:00 UTC. The netlink debug looks correct for > seconds past midnight UTC, but displaying the rules looks like an > overflow or a byte order problem. I am in UTC-0400, so today, 20:00 > and later exhibits the problem, while 19:00 and earlier hours are > fine. > > nft add table ip t > nft add chain ip t c > nft add rule ip t c meta hour "19:00"-"19:59" counter > nft add rule ip t c meta hour "20:00"-"20:59" counter > nft list table ip t > table ip t { > chain c { > meta hour "19:00"-"19:59" counter packets 0 bytes 0 > meta hour "1193042:28:16"-"1193043:27:16" counter Right, existing code is broken for negative offsets. I'll post a fix later today.