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

int nfq_get_physindev_name ( struct nlif_handle *  nlif_handle,
struct nfq_data nfad,
char *  name 
)

nfq_get_physindev_name - get the name of the physical interface the packet was received through

Parameters:
nlif_handlepointer to a nlif interface resolving handle
nfadNetlink packet data handle passed to callback function
namepointer to the buffer to receive the interface name; not more than IFNAMSIZ bytes will be copied to it.

See nfq_get_indev_name() documentation for nlif_handle usage.

Returns:
-1 in case of error, > 0 if it succeed.

Definition at line 921 of file libnetfilter_queue.c.

References nfq_get_physindev().

{
      u_int32_t ifindex = nfq_get_physindev(nfad);
      return nlif_index2name(nlif_handle, ifindex, name);
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index