go-netfilter-queue
go-netfilter-queue copied to clipboard
Go bindings for libnetfilter_queue
- Point C.struct_nfq_handle to the right structure members. - Change decodeoptions parameters - Point code.google.com to github Signed-off-by: Jorge Niedbalski [email protected]
Dynamically load libnetfilter.so so that applications who use the library will load on all systems.
We should be able to use the library even on systems where libnetfilter is not available. There must be a way to check if we can use libnetfilter, and if...
It looks like an additional field was added to `DecodeOptions` in gopacket, and because Go's dependency management solution is to simply always download the latest version, go-netfilter-queue no longer builds....
This pull does the following: 1. Load libnetfilter.so using dlopen and fail if that doesn't exist (InitNF). 2. Redirect each call into the library using dlsym.
I haven't understood why this worked before, but to get it to build for me, I had to make this change.
- fix usage of netfilter queue structs - fix usage of gopacket api Previously this project did not build on a Debian wheezy system... this commit fixes that.