예제 #1
0
파일: nfq.c 프로젝트: chamaken/nurs
static enum nurs_return_t nfq_stop(struct nurs_producer *producer)
{
	struct nfq_priv *priv = nurs_producer_context(producer);

	nurs_fd_unregister(priv->fd);
	if (unbind_nfq(producer))
		return NURS_RET_ERROR;
	return NURS_RET_OK;
}
예제 #2
0
int main(int argc, char **argv)
{
    struct nfq_handle *h = NULL;
    struct nfq_q_handle *qh = NULL;
    
    create_nfq(&h,&qh,0);
    receive_nfq(h);
    unbind_nfq(h,qh);
    return 0;
}