Clean up and adapt firewall package to recent changes

This commit is contained in:
Daniel
2019-10-25 13:35:25 +02:00
parent 25b1d59663
commit 4348caa258
8 changed files with 24 additions and 13 deletions

View File

@@ -0,0 +1,2 @@
// Package nfqueue provides network interception capabilites on linux via iptables nfqueue.
package nfqueue

View File

@@ -64,7 +64,7 @@ func NewNFQueue(qid uint16) (nfq *NFQueue, err error) {
func (this *NFQueue) init() error {
var err error
if this.h, err = C.nfq_open(); err != nil || this.h == nil {
fmt.Errorf("could not open nfqueue: %s", err)
return fmt.Errorf("could not open nfqueue: %s", err)
}
//if this.qh, err = C.nfq_create_queue(this.h, qid, C.get_cb(), unsafe.Pointer(nfq)); err != nil || this.qh == nil {