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

int nfq_set_verdict2 ( struct nfq_q_handle qh,
u_int32_t  id,
u_int32_t  verdict,
u_int32_t  mark,
u_int32_t  data_len,
const unsigned char *  buf 

nfq_set_verdict2 - like nfq_set_verdict, but you can set the mark.

qhNetfilter queue handle obtained by call to nfq_create_queue().
idID assigned to packet by netfilter.
verdictverdict to return to netfilter (NF_ACCEPT, NF_DROP)
markmark to put on packet
data_lennumber of bytes of data pointed to by buf
bufthe buffer that contains the packet data

Definition at line 706 of file libnetfilter_queue.c.

      return __set_verdict(qh, id, verdict, htonl(mark), 1, data_len, buf);

Generated by  Doxygen 1.6.0   Back to index