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

int nfq_handle_packet ( struct nfq_handle *  h,
char *  buf,
int  len 
)

nfq_handle_packet - handle a packet received from the nfqueue subsystem

Parameters:
h Netfilter queue connection handle obtained via call to nfq_open()
buf data to pass to the callback
len length of packet data in buffer
Triggers an associated callback for the given packet received from the queue. Packets can be read from the queue using nfq_fd() and recv(). See example code for nfq_fd().

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

Definition at line 523 of file libnetfilter_queue.c.

{
      return nfnl_handle_packet(h->nfnlh, buf, len);
}


Generated by  Doxygen 1.6.0   Back to index