nfqueue-go icon indicating copy to clipboard operation
nfqueue-go copied to clipboard

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

Open losintikfos opened this issue 6 years ago • 1 comments

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

losintikfos avatar Aug 09 '19 12:08 losintikfos

Unfortunately, the library is not doing this properly.

See [1], [2]

WGH- avatar Aug 28 '19 22:08 WGH-