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

int nfq_get_physoutdev_name ( struct nlif_handle *  nlif_handle,
struct nfq_data *  nfad,
char *  name 

nfq_get_physoutdev_name - get the name of the interface the packet will be sent to

nlif_handle pointer to a nlif interface resolving handle
nfad Netlink packet data handle passed to callback function
name pointer that will be set to the interface name string The name variable will point to the name of the physical output interface.
See nfq_get_indev_name() documentation for nlif_handle usage.

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

Definition at line 924 of file libnetfilter_queue.c.

References nfq_get_physoutdev().

      u_int32_t ifindex = nfq_get_physoutdev(nfad);
      return nlif_index2name(nlif_handle, ifindex, name);

Generated by  Doxygen 1.6.0   Back to index