Logo Search packages:      
Sourcecode: libnetfilter-queue version File versions  Download package

int nfq_destroy_queue ( struct nfq_q_handle qh )

nfq_destroy_queue - destroy a queue handle

Parameters:
qhqueue handle that we want to destroy created via nfq_create_queue

Removes the binding for the specified queue handle. This call also unbind from the nfqueue handler, so you don't have to call nfq_unbind_pf.

Definition at line 513 of file libnetfilter_queue.c.

{
      int ret = __build_send_cfg_msg(qh->h, NFQNL_CFG_CMD_UNBIND, qh->id, 0);
      if (ret == 0) {
            del_qh(qh);
            free(qh);
      }

      return ret;
}

Generated by  Doxygen 1.6.0   Back to index