chifflier / nfqueue-go

Go bindings for NFQueue
GNU General Public License v2.0
51 stars 21 forks source link

panic: runtime error: cgo argument has Go pointer to Go pointer #12

Open losintikfos opened 5 years ago

losintikfos commented 5 years ago

Hi,

Do you know why this line in (CreateQueue):

q.c_qh = C.nfq_create_queue(q.c_h,C.u_int16_t(queue_num),(*C.nfq_callback)(C.c_nfq_cb),unsafe.Pointer(q))

Is halting build with the error:

panic: runtime error: cgo argument has Go pointer to Go pointer

Thanks

WGH- commented 5 years ago

Unfortunately, the library is not doing this properly.

See [1], [2]