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

u_int32_t nfq_get_physindev ( struct nfq_data nfad )

nfq_get_physindev - get the physical interface that the packet was received

Parameters:
nfadNetlink packet data handle passed to callback function
Returns:
The index of the physical device the queued packet was received via. If the returned index is 0, the packet was locally generated or the physical input interface is no longer known (ie. POSTROUTING?).

Definition at line 831 of file libnetfilter_queue.c.

Referenced by nfq_get_physindev_name().

{
      return ntohl(nfnl_get_data(nfad->data, NFQA_IFINDEX_PHYSINDEV, u_int32_t));
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index