[Feature request] Add TTL support
I know you already have IP_SET/Netfilter patch, but TTL (time to live) is another network related kernel feature some implementations use, which I believe is useful. It allows network packet manipulation, which has the primary benefit of letting you have uncapped tethering limits when using hotspots. The implementation is fairly straight-forward, so I made an attempt at it as well...
Using a combination of researching other implementations that incorporate this and also using with some help of Gemini for ensuring all the proper flags were included, I made a pull request you can consider looking at if you want to implement it as I've written it (just did for ReSukiSU branch for simplicity but it would be trivial to copy to others as well). I included the rationale for each of the changes in the pull request/commit (https://github.com/Numbersf/Action-Build/pull/243), but I will paste them here as well:
TTL (time to live) is a patch that can be used to uncap tethering limits
- added toggle for TTL support in workflow, with description (attempted CN translation with Google Translate--may need modification)
- added flag implementation for TTL (target flag, match flag, target flag fallbacks for legacy, match flag fallbacks for legacy, and mangle prerequisites)
- I've seen implementations ONLY use the legacy flags (CONFIG_IP_NF_TARGET_TTL and CONFIG_IP6_NF_TARGET_HL), but I figured it'd be best to include the more modern one (CONFIG_NETFILTER_XT_TARGET_HL) as well
- Also included the match flags, which Gemini said are technically optional, but useful for certain conditional iptables/routing rules -- modern one CONFIG_NETFILTER_XT_MATCH_HL with the legacy fallbacks CONFIG_IP_NF_MATCH_TTL and CONFIG_IP6_NF_MATCH_HL
- the mangle table flags are supposedly included in most builds anyway, but they are prerequisites for this apparently, so figured it couldn't hurt to have them as well
- appended TTL status to debug log, build job name, and zip file name (I believe this is all instances?)
Hope this helps!
Complete the changes in #243.