A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/rmind/bpfjit below:

rmind/bpfjit: Just-in-Time compilation of bpf

Just-in-Time Compilation for Berkeley Packet Filter

You need sljit (http://sljit.sourceforge.net/) and mk-configure (http://sourceforge.net/projects/mk-configure/) to build bpfjit.

It is recommended to use pkgsrc and install devel/mk-configure. The pkgsrc guide is available at http://www.netbsd.org/docs/pkgsrc/.

The sljit code must be at revision r313 or newer:

$ svn co https://svn.code.sf.net/p/sljit/code@r313 sljit

$ tar cf sljit-r313.tar sljit/

Extract sljit tarball to sljit/ subdirectory. Make sure you pass --keep-old-files (-k) option to tar to keep Makefiles from bpfjit.

$ cd sljit/

$ tar kxf /path/to/sljit-r313.tar

Then you can build bpfjit with this command

and install:

$ export DESTDIR=/path/of/your/choice

$ env PREFIX=/ mkcmake install
$ export LD_LIBRARY_PATH=${DESTDIR}/lib

$ cd ${DESTDIR}

$ ./bin/bpfjit_test

$ echo $?

You should see zero exit status.

Just build the package, install it and link the library using the -lbpfjit flag.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4