mirror of
https://github.com/dikeckaan/mu300-linux.git
synced 2026-12-06 00:03:00 +00:00
The nft rule sits in postrouting, which fw4's software flowtable skips, so it needed offloading off. The flowtable transmits with dev_queue_xmit, which still runs clsact's egress hook: on the mainline kernels (act_pedit, act_csum, cls_matchall) a matchall filter there rewrites the TTL/hop limit of every packet on every sipa_eth*, and offloading is left alone. The 5.4 vendor kernel keeps the nft backend with offloading off (ttl.offload-off records that this script turned it off, so tc and "off" only turn back on what it turned off). matchall cannot replace a filter (EEXIST, seen on the U30 Air), so apply deletes and re-adds; mobile-data's bring-up calls it. LuCI: Cellular > TTL (view mu300/ttl, mu300dash ttl_get/ttl_set, unisoc-modem/ttl adapter, ACL, catalogs). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DqKKtBQZCfxYnHuBCuDqqn