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

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

nfq_get_payload - get payload

Parameters:
nfad Netlink packet data handle passed to callback function
data Pointer 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.

Returns:
-1 on error, otherwise > 0.

Definition at line 970 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