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

int nfq_get_payload ( struct nfq_data nfad,
unsigned char **  data 

nfq_get_payload - get payload

nfadNetlink packet data handle passed to callback function
dataPointer of pointer that will be pointed to the payload

Retrieve the payload for a queued packet. The actual amount and type of data retrieved by this function will depend on the mode set with the nfq_set_mode() function.

-1 on error, otherwise > 0.

Definition at line 1006 of file libnetfilter_queue.c.

      *data = nfnl_get_pointer_to_data(nfad->data, NFQA_PAYLOAD, char);
      if (*data)
            return NFA_PAYLOAD(nfad->data[NFQA_PAYLOAD-1]);

      return -1;

Generated by  Doxygen 1.6.0   Back to index