On 1 June 2017 at 20:48, Daniel Wagner <wagi(a)monom.org> wrote:
Your email got marked as spam. Too much HTML I guess.
I've set this reply to plain text mode to avoid that in future.
If you don't want to ifdef around I suggest to implement this API
The iptables and nftable code do this. Just add a new file and hook
up in the build process (Makefile.am). I think such a patch can be
easily maintained out of tree. Or if it is nicely done, I don't see a
real problem to accept it upstream.
The function names indicate what the implementation is supposed to do.
If you are just interested to get tethering working you need to
implement the NAT function, e.g. from firewall-iptables:
I understand what you are suggesting. I have been reading through
firewall-iptables.c & iptables.c trying to follow how the code works.
So I have a good idea where to go from here.
I will try to implement as nicely as possible so others can use it. I
won't do the full implementation including updating the configure
script, but I'll try to get the core code to a useful state.
Thanks for you help