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

u_int32_t nfq_get_indev ( struct nfq_data nfad )

nfq_get_indev - get the interface that the packet was received through

Parameters:
nfadNetlink packet data handle passed to callback function
Returns:
The index of the device the queued packet was received via. If the returned index is 0, the packet was locally generated or the input interface is not known (ie. POSTROUTING?).
Warning:
all nfq_get_dev() functions return 0 if not set, since linux only allows ifindex >= 1, see net/core/dev.c:2600 (in 2.6.13.1)

Definition at line 818 of file libnetfilter_queue.c.

Referenced by nfq_get_indev_name().

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

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index