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

int nfq_close ( struct nfq_handle h )

nfq_close - close a nfqueue handler

Parameters:
hNetfilter queue connection handle obtained via call to nfq_open()

This function closes the nfqueue handler and free associated resources.

Returns:
0 on success, non-zero on failure.

Definition at line 386 of file libnetfilter_queue.c.

{
      int ret;
      
      ret = nfnl_close(h->nfnlh);
      if (ret == 0)
            free(h);
      return ret;
}

Generated by  Doxygen 1.6.0   Back to index