3 ms·
Next obvious step: Compile the kernel into BPF using LLVM and run it inside itself.
by lukego 11y ago
Next obvious step: Compile the kernel into BPF using LLVM and run it inside itself.
- heinrich5991 11y agoUnfortunately the kernel does have loops…
- njohnson41 11y agoIf BPF can be used to modify packets, can a filter be used to send packets through loopback that then come back through the same filter? Sounds like a way to bootstrap a loop.
- viraptor 11y agoYou have a very very dangerous mind... I like it. Actually you could have stateful loops too. Make each packet duplicated at iptables and each time increment the counter. Send one to 127.0.0.1 (true, continue) and one to 127.0.0.2 (false, stop). The right answer is accepted, wrong dropped.