Let's Encrypt implementation is closed source and outside of my control.
But for safety I have to ask, does ac86u hard to brick, I mean, the cfe restore stuff...
Not 100% sure, just for safety I recommend you do your tests using the ubi.w image rather than the cfe_ubi.w image. The RT-AC86U shares the same ftpd/mini web interface as other models.
If your kernel changes are in a module, you should be safe, any crash would only happen when modprobing the module.
Modified the 4 files I mentioned above, but still got 'invalid size 160 (kernel) != (user) 96' error. When building iptables-1.4.x, we're using linux header from toolchain (arm-buildroot) right? I changed pointers in xt_geoip.h to aligned_u64 type, why still 96 bits in user space? Am I missing something?
My bad. I didn't noticed that I flashed original merlin firmware again.
Confirmed working.
Should this patch being merged into repo?
I'm willing to merge it, provided it doesn't break other platforms.
Since seems only ac86u was built with kernel 4.1, changes to kernel header and geoip kernel module should be safe to merge, and changes to kernel header file inside hnd toolchain should be safe to merge, too.
But changes to iptables-1.4.x will break other models, so it needed to be patched only when building iptables-1.4.x for ac86u, but I'm not familiar with makefiles (not using C/Make for over ten years), so I uploaded diff files here.
How about we change xt_geoip.c xt_geoip.h in all kernels? Except slightly memory usage change, I don't think it will break any other function, as you said, ASUS didn't make use of it.That wouldn't work too well, since Asuswrt does not rely of buildtime patching (unlike OpenWRT). This would have to be implemented with the use of ifdef blocks.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!