News for hackers. Stuff that matters.
Re:Unofficial DynASM Documentation by alnsn on Wednesday June 18, 2014 @06:15AM (#7909288)
Hi Luke, Take a look at bpfjit in NetBSD. It uses bsd licensed sljit library to generate code for multiple platforms. The library has some slight overhead over hand-written assembly but it gives you a single codebase for all platforms. At the very least, you can borrow some optimisations from my code. http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/net/bpfjit.c?onl... PS I can't work on sponsored projects. Alex
Re:Unofficial DynASM Documentation by lukego on Wednesday June 18, 2014 @06:17AM (#7909297)
Thanks for the pointer!

Do you also know a lightweight way to compile pcap-filters into BPF code?

Re:Unofficial DynASM Documentation by justincormack on Wednesday June 18, 2014 @07:26AM (#7909439)
Not sure there is. There seems to be a lot of optimisation done, and there only seem to be a couple of heavyweight implementations.