fw4: ensure to capitalize weekday names
authorJo-Philipp Wich <jo@mein.io>
Wed, 30 Mar 2022 14:49:22 +0000 (16:49 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 30 Mar 2022 14:52:23 +0000 (16:52 +0200)
commit9972f7dca635392832810d2d43b663f08466b088
tree4a75faf676e47d648a4c84cf1fa5e8400e42d0fa
parentfde80708d63d54be18037c598d1e6aef0c65ca08
fw4: ensure to capitalize weekday names

Despite what's being documented in the nftables wiki, nftables does not
actually accept lowercased or abbreviated weekday names, currently failing
with a "Error: Could not parse Day of week of packet reception" error for
expressions such as `meta day { "sunday", "wed" }`.

Work around the problem by explicitly emitting capitalized weekday names
while a more thorough nftables-side solution is being sent upstream.

Ref: https://forum.openwrt.org/t/firewall-time-restrictions-parental-controls-problems/123964
Ref: https://wiki.nftables.org/wiki-nftables/index.php/Matching_packet_metainformation#Matching_by_time
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc